mohsen1 / json-formatter

Angular directive for collapsible JSON in HTML
http://azimi.me/json-formatter/demo/demo.html
Other
372 stars 85 forks source link

Add title attribute to directive #45

Closed raykin closed 6 years ago

raykin commented 8 years ago

Add example for title attribute and in one commit.

mohsen1 commented 8 years ago

There are a couple of issues. Please fix them.

Please update the documentations as well.

raykin commented 8 years ago

updated, please recheck it

tvdstaaij commented 7 years ago

Currently using a very ugly CSS-based hack/workaround to achieve something close to this (ideally I'd replace "Object" entirely, but CSS only has before and after):

<json-formatter open="0" json="srcObject" class="my-object"></json-formatter>
.my-object > a > span.value span.constructor-name:before {
  color: #00008B;
  content: 'myTitle: ';
}

Would be great if this feature becomes officially available so that such hacks can be ditched.

raykin commented 6 years ago

close because out of date.