mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-21 06:05:45 +08:00
Additional pin templates type
This commit is contained in:
17
js/template/StringPinTemplate.js
Normal file
17
js/template/StringPinTemplate.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import html from "./html"
|
||||
import PinTemplate from "./PinTemplate"
|
||||
|
||||
/**
|
||||
* @typedef {import("../element/PinElement").default} PinElement
|
||||
*/
|
||||
export default class StringPinTemplate extends PinTemplate {
|
||||
|
||||
/**
|
||||
* @param {PinElement} pin
|
||||
*/
|
||||
renderInput(pin) {
|
||||
return html`
|
||||
<span class="ueb-pin-input" role="textbox" contenteditable="true"></span>
|
||||
`
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user