官术网_书友最值得收藏!

Renaming the note

This first toolbar feature is also the easiest. It only consists of a text input bound to the title property of the selected note with the v-model directive.

In the toolbar p element we just created, add this input element with the v-model directive and a placeholder to inform the user of its function:

<input v-model="selectedNote.title" placeholder="Note title" />

You should have a functional rename field above the text editor and see the note name change automatically in the note list as you type:

Since we set the deep option on the notes watcher, the note list will be saved whenever you change the name of the selected note.

主站蜘蛛池模板: 雅江县| 南岸区| 邵阳市| 连江县| 赤壁市| 罗定市| 隆安县| 沅陵县| 五指山市| 陆良县| 霍山县| 苏尼特右旗| 高青县| 将乐县| 府谷县| 永城市| 岱山县| 桑植县| 南京市| 福海县| 兴义市| 徐州市| 平江县| 宣威市| 城市| 隆安县| 台南市| 徐州市| 北碚区| 湄潭县| 桦甸市| 荔波县| 湖北省| 盐池县| 呼伦贝尔市| 禹城市| 龙川县| 盐津县| 房产| 昌乐县| 十堰市|