Adding a strike through to a list
Adding a strike through to a list
Pierre-Louis
Posts: 10Questions: 3Answers: 0
in Editor
is it possible to add a strike though in a list option element ?
Answers
You haven't provided any information in what context you are using the select list. This SO thread shows some options for this. If this doesn't help then please provide more details of how you are using the select list with Datatables or Editor.
Kevin
I'm using the options this way:
`
function FormatUsersList() {
var list = [];
}
var formattedUsers = FormatUsersList();
`
I don't see where i can put the line-through css to my element
Ah - you mean in the list of options for Editor? For the label use the
<s>
tag to wrap around the label's text.Allan
Am i putting it in the wrong place ?
Seems like it's interpreted as text
Oh! Sorry - this is inside a
select
option isn't it. I'd been thinking it was aradio
for some reason. But I do indeed see the select in the above code.In that case, I'm not aware of any way in which this can be done, even outside Editor. The select list options cannot have HTML inside them as you are seeing and the options have extremely limited styling options.
The only way to do what you are looking for would be to use Select2 or some other HTML based custom dropdown.
Allan