I often see stylish css effects achieved with the use of ::after css pseudo-selector. For example:
.bs-docs-example::after {
content: "Example";
position: absolute; ...
In this twitter-bootstrap class content property defines the text in the ::after element. Is there any way I can make that dynamic by binding it with KnockoutJS?
I have had to do something similar to this a couple of times before and the way that I did it was to bind to the text of a
styleelement like:with a computed observable like:
Here is a sample: http://jsfiddle.net/rniemeyer/hfKPc/