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

Summary: HTML code completion enhancements for JET
Product: javascript Reporter: Geertjan Wielenga <geertjan>
Component: OJETAssignee: Petr Pisl <ppisl>
Status: STARTED ---    
Severity: normal CC: anebuzelsky
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

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