angularjs - Text inside angular-material switch thumb -


iam unable place text inside angular-switch using angular-material

iam using following tag , want insert text inside switch thumb.

 <md-switch class="md-primary" md-no-ink aria-label="switch no ink" ng-model="data.cb5"><p>hi</p>                         </md-switch> 

in below image,

i need output this. enter image description here appreciated.

try might solve issue

 <md-switch class="inline-label" md-no-ink aria-label="switch no ink" ng-model="data.cb5"><p>hi</p> </md-switch> 

css

md-switch.inline-label .md-bar::before {   position: absolute;   font-size: 9px;   line-height: 13px;    content: "off";   right: 0;   padding-right: 3px;       }  md-switch.inline-label.md-checked .md-bar::before {   content: "on";   left: 0;   padding-left: 3px; } 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -