This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257174 - HTML code completion enhancements for JET
Summary: HTML code completion enhancements for JET
Status: STARTED
Alias: None
Product: javascript
Classification: Unclassified
Component: OJET (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-16 12:59 UTC by Geertjan Wielenga
Modified: 2016-03-08 18:40 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geertjan Wielenga 2015-12-16 12:59:28 UTC
<div data-bind="ojModule:{name:'home'}"></div>

The above is a typical construct in JET, within a JET app's 'index.html' file.

Two enhancements to HTML code completion would be great to support the above:

1. Code completion within the quotation mark after "data-bind" should include "ojModule", i.e., here:

<div data-bind="|

2. Code completion after 'name:' should include any modules in the default location (look in js/views and list anything found there, i.e., these are all HTML files, in the default location, and also look at the overridden position, within main.js):

<div data-bind="ojModule:{name:'|
Comment 1 Petr Pisl 2016-02-10 12:31:11 UTC
I was looking on this and the ojModule has to be treated in different way then other components. But doable.
Comment 2 Petr Pisl 2016-03-08 18:40:19 UTC
The first part is now implemented in web-main. The second part is still not done. 
http://hg.netbeans.org/web-main/rev/90f24fe225db