Function
setSelection
(
host: Context.Service.Shape<typeof Host>,
node: NativeNode,
start: number,
end = start
)
Source from the content-addressed store, hash-verified
| 1383 | * @since 4.2.0 |
| 1384 | */ |
| 1385 | export const setSelection = ( |
| 1386 | host: Context.Service.Shape<typeof Host>, |
| 1387 | node: NativeNode, |
| 1388 | start: number, |
| 1389 | end = start |
| 1390 | ): void => { |
| 1391 | host.command(node, "setTextAndSelection", [ |
| 1392 | node.eventCount, |
| 1393 | null, |
| 1394 | start, |
| 1395 | end |
| 1396 | ]) |
| 1397 | } |
| 1398 | |
| 1399 | /** |
| 1400 | * Operations available to a {@link ViewKind}'s hooks. |
Callers
nothing calls this directly
Tested by
no test coverage detected