Widgets
Samples
Demos
Forum
Services
Documentation
addCss
addMeta
addStyle
allowSelect
create
createCss
denySelect
download
getSelectionRange
getTextSize
getValue
index
insertBefore
locate
offset
pos
posRelative
preventEvent
remove
removeCss
removeStyle
setSelectionRange
stopEvent
triggerEvent
Start
API Reference
html
Methods
setSelectionRange
sets selection for a node
void
setSelectionRange
(
HTMLElement
node
,
number
start
,
number
end
);
node
HTMLElement
a DOM element
start
number
the start point of selection
end
number
the end point of selection
Example
webix.
html
.
setSelectionRange
(
"myDiv"
,
start
,
end
)
;
See also
API
getSelectionRange
Back to top