Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
How to enable Intellisense for angular 2 grid in VS Code ?
posted

Hi,

I am using VS Code as editor for my angular 2 code. I have installed npm and ignite ui angular 2 grid quick start from github, everything is up & running perfectly. Just need to know how can I get intellisense support for angular components of grid. I am having intellisense support for some of the grid features like 'gridoptions'. but say I am defining the gridoptions in .ts constructor; inside column settings, I am not having any intellisense support (As in the image given below, Inside features). Can you tell me why I am facing this or Is it not there at all?

this.gridOptions = {
width: "100%",
height:"500px",
autoCommit: true,
autoGenerateColumns: false,
columns:this.colsDef ,
primaryKey: "ID",
features: [
{
name: "Updating",
columnSettings: [{
columnKey: "ID",
readOnly: true,
}]

Regards

Rahul S

Parents
No Data
Reply
  • 3995
    Offline posted

    Hi Rahul,

    Ignite UI components in Angular are providing full intellisense support in VS Code.

    For your scenario make sure that colsDef is defined as Array of IgGridColumn-s:

        private colsDef: Array<IgGridColumn>;

Children
No Data