Skip to content

Counter Feature, arrays #286

Open
Open
@razvanFrandes

Description

@razvanFrandes

Hello,

Can you add a new flag to have a counter. I usualy work and see big large chunks of data, and it will be helpfull to have an ideea how many object I see.

Here is what I did inside you'r css file.

Image
#jsonFormatterParsed {
	.blockInner {
	  counter-reset: elementCounter;
	}
	.e::before {
    	  counter-increment: elementCounter;
    	  content: counter(elementCounter);
    	  color: white;
    	  position: absolute;
    	  right: 32px;
	}
}

or to start from 0

.blockInner {
	 counter-reset: elementCounter -1;
}

styles a bit

#jsonFormatterParsed {
    .blockInner {
           counter-reset: elementCounter -1;
           border-color: rgba(17, 179, 2, 0.4196078431);
           border-left-width: thin;
           border-bottom: 0;
           border-top: 0;
           border-left-style: dashed;
    }
	
	.e {
		color: #11b302;
		cursor: pointer;
		opacity: 1;
	}
	
  .e::before {
    	counter-increment: elementCounter;
    	content: counter(elementCounter);
    	position: absolute;
    	right: 32px;
    	color: #inherit;
	}
  
  .entry[data-size*=" // 1 item"] .e:before {
  	content: none;
  }
}
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions