我正在将 Nebular 与 Angular 6 一起使用,在单击菜单项时遇到问题,未添加父菜单项上的活动类。但是如果您看到http://akveo.com/ngx-admin,当您单击“UI-features”内的“”buttons”时,它们的 UI-features 会突出显示。
下面是我的 JSON 文件:
[
{
"title": "Dashboards",
"icon": "font_icons8 icons8-statistics",
"link": "/dashboard",
"home": true
},
{
"title": "UI Features",
"icon": "font_icons8 icons8-data-configuration",
"link": "/ui-features",
"children": [
{
"title": "Typography",
"link": "/ui-features/typography"
},
{
"title": "Grid",
"link": "/ui-features/grid"
}
]
},
]
Run Code Online (Sandbox Code Playgroud)
请帮助我解决这个问题。
我正在使用带有鹅毛笔编辑器的 Angular 7。用例:我有鹅毛笔编辑器,需要在双击任何按钮时附加一些文本,获取双击的值,但无法获取鹅毛笔编辑器内的光标位置。
我尝试使用 (onContentChanged)、(onEditorCreated) 和 (onSelectionChanged),还尝试使用 onFocus,因为我必须在单个模板中使用多个鹅毛笔编辑器。
需要仅将文本附加到焦点编辑器上,但仅附加到光标位置上。
这是我的代码示例
<quill-editor #editor [maxLength]="maxLength"
[minLength]="minLength"
[modules]="quillConfig"
[(ngModel)]="text"
(onContentChanged)="contentchanged($event)"
(onEditorCreated)="editorCreated($event)"
[placeholder]="placeholder"
[readOnly]="readonly"
[required]="required"
[style]="{height: height}"
(onSelectionChanged)="onFocus($event)">
Run Code Online (Sandbox Code Playgroud)