BlockSuite API Documentation / @blocksuite/inline / VLine
Class: VLine
Extends
LitElement
Constructors
new VLine()
new VLine():
VLine
Returns
Inherited from
LitElement.constructor
Defined in
node_modules/.pnpm/@[email protected]/node_modules/@lit/reactive-element/development/reactive-element.d.ts:504
Other
elements
Defined in
packages/framework/inline/src/components/v-line.ts:133
index
Defined in
packages/framework/inline/src/components/v-line.ts:136
inlineEditor
get
inlineEditor():InlineEditor
<object
>
Returns
InlineEditor
<object
>
bold?
optional
bold:null
|true
code?
optional
code:null
|true
italic?
optional
italic:null
|true
link?
optional
link:null
|string
strike?
optional
strike:null
|true
underline?
optional
underline:null
|true
Defined in
packages/framework/inline/src/components/v-line.ts:15
vElements
get
vElements():VElement
<object
>[]
Returns
VElement
<object
>[]
Defined in
packages/framework/inline/src/components/v-line.ts:29
vTextContent
get
vTextContent():string
Returns
string
Defined in
packages/framework/inline/src/components/v-line.ts:33
vTextLength
get
vTextLength():number
Returns
number
Defined in
packages/framework/inline/src/components/v-line.ts:37
vTexts
get
vTexts():VText
[]
Returns
VText
[]
Defined in
packages/framework/inline/src/components/v-line.ts:42
renderVElements()
renderVElements():
TemplateResult
<1
>
Returns
TemplateResult
<1
>
Defined in
packages/framework/inline/src/components/v-line.ts:84
rendering
createRenderRoot()
createRenderRoot():
VLine
Returns
Overrides
LitElement.createRenderRoot
Defined in
packages/framework/inline/src/components/v-line.ts:46
render()
render():
undefined
|TemplateResult
Invoked on each update to perform rendering tasks. This method may return any value renderable by lit-html's ChildPart
- typically a TemplateResult
. Setting properties inside this method will not trigger the element to update.
Returns
undefined
| TemplateResult
Overrides
LitElement.render
Defined in
packages/framework/inline/src/components/v-line.ts:75
updates
firstUpdated()
protected
firstUpdated():void
Invoked when the element is first updated. Implement to perform one time work on the element after update.
firstUpdated() {
this.renderRoot.getElementById('my-text-area').focus();
}
Setting properties inside this method will trigger the element to update again after this update cycle completes.
Returns
void
Overrides
LitElement.firstUpdated
Defined in
packages/framework/inline/src/components/v-line.ts:50
getUpdateComplete()
getUpdateComplete():
Promise
<boolean
>
Override point for the updateComplete
promise.
It is not safe to override the updateComplete
getter directly due to a limitation in TypeScript which means it is not possible to call a superclass getter (e.g. super.updateComplete.then(...)
) when the target language is ES5 (https://github.com/microsoft/TypeScript/issues/338). This method should be overridden instead. For example:
class MyElement extends LitElement {
override async getUpdateComplete() {
const result = await super.getUpdateComplete();
await this._myChild.updateComplete;
return result;
}
}
Returns
Promise
<boolean
>
A promise of a boolean that resolves to true if the update completed without triggering another update.
Overrides
LitElement.getUpdateComplete
Defined in
packages/framework/inline/src/components/v-line.ts:68