Giter VIP home page Giter VIP logo

ng-treetable's People

Contributors

andrew-yangy avatar angular-cli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ng-treetable's Issues

search filter is not working ?

<input #gb type="text" pInputText size="50" placeholder="Global Filter">
<ay-treeTable [value]="data" [globalFilter]="gb" [rows]="10" [paginator]="true" [pageLinks]="3" [rowsPerPageOptions]="[5,10,20]">


i have try this , in that when i type something in search nothing happen , treelist remain as in initial state , dont know what do to , is their is anything we need to add in this.

can't resize column with tableStyle

I am using version 1.3.3.

How could I change the column size?
because [tableStyle]="{'table-layout': 'auto'}" is not working for me.

Would it be possible to set the size(number of pixels) for specific columns?

About expand level

Hi ddvkid,
I would like to know if your code can support expanding the tree level(depth) as I want.
for example,

  1. Expand the tree for 2 levels at once from selected node.
  2. Expand the tree all levels at once.
    If it does support, would you give me some hints? I am really appreciate for your help.

Filter not working

<input #gb type="text" pInputText size="50" placeholder="Filter">
<ay-treeTable [value]="files" [globalFilter]="gb">
 <ay-column field="name" header="Name"></ay-column>
 <ay-column field="gender" header="Gender"></ay-column> 
</ay-treeTable>

When I enter text in the filter input field and press enter, filter is not working as expected

ng-treetable breaks at angular 9

We have upgraded the angular 9 and treetable 1.2.2 to 1.3.3
It gives following compilation error:

ERROR in The target entry-point "ng-treetable" has missing dependencies:

  • @angular/core/src/metadata/lifecycle_hooks

Package.json

    "dependencies": {
        "@angular/animations": "~9.0.3",
        "@angular/common": "~9.0.3",
        "@angular/compiler": "~9.0.3",
        "@angular/core": "~9.0.3",
        "@angular/forms": "~9.0.3",
        "@angular/localize": "^9.0.4",
        "@angular/platform-browser": "~9.0.3",
        "@angular/platform-browser-dynamic": "~9.0.3",
        "@angular/router": "~9.0.3",
        "@ng-bootstrap/ng-bootstrap": "^6.0.0",
        "@ngx-translate/core": "^12.1.2",
        "@ngx-translate/http-loader": "^4.0.0",
        "@swimlane/ngx-charts": "^13.0.2",
        "angular-file-saver": "^1.1.3",
        "bootstrap": "^4.4.1",
        "chart.js": "^2.9.3",
        "font-awesome": "^4.7.0",
        "ng-infinite-scroll": "^1.3.0",
        "ng-treetable": "1.3.3",
        "ng2-auto-complete": "^0.12.0",
        "ng2-charts": "^2.3.0",
        "ngx-infinite-scroll": "^8.0.1",
        "ngx-uploader": "^8.0.0",
        "rxjs": "~6.5.4",
        "tslib": "^1.10.0",
        "zone.js": "~0.10.2"
    },

Resolution will be much appreciated.
Thanks

Can't bind to 'value' since it isn't a known property of 'ay-treeTable'.

Can't bind to 'value' since it isn't a known property of 'ay-treeTable'.

  1. If 'ay-treeTable' is an Angular component and it has 'value' input, then verify that it is part of this module.
  2. If 'ay-treeTable' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message.
    ("<ay-treeTable [ERROR ->][value]="data">

    <ay-column field="gender"): PnmtreetableComponent@0:14
    'ay-column' is not a known element:
  3. If 'ay-column' is an Angular component, then verify that it is part of this module.
  4. If 'ay-column' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("<ay-treeTable [value]="data">
    [ERROR ->]
    </a"): PnmtreetableComponent@1:4
    'ay-column' is not a known element:
  5. If 'ay-column' is an Angular component, then verify that it is part of this module.
  6. If 'ay-column' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("<ay-treeTable [value]="data">

    [ERROR ->]
    "): PnmtreetableComponent@2:4
    'ay-treeTable' is not a known element:
  7. If 'ay-treeTable' is an Angular component, then verify that it is part of this module.
  8. If 'ay-treeTable' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("[ERROR ->]<ay-treeTable [value]="data">

    <ay-column"): PnmtreetableComponent@0:0 ; Zone: ; Task: Promise.then ; Value: SyntaxError Error: Template parse errors:
    Can't bind to 'value' since it isn't a known property of 'ay-treeTable'.
  9. If 'ay-treeTable' is an Angular component and it has 'value' input, then verify that it is part of this module.
  10. If 'ay-treeTable' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message.
    ("<ay-treeTable [ERROR ->][value]="data">

    <ay-column field="gender"): PnmtreetableComponent@0:14
    'ay-column' is not a known element:
  11. If 'ay-column' is an Angular component, then verify that it is part of this module.
  12. If 'ay-column' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("<ay-treeTable [value]="data">
    [ERROR ->]
    </a"): PnmtreetableComponent@1:4
    'ay-column' is not a known element:
  13. If 'ay-column' is an Angular component, then verify that it is part of this module.
  14. If 'ay-column' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("<ay-treeTable [value]="data">

    [ERROR ->]
    "): PnmtreetableComponent@2:4
    'ay-treeTable' is not a known element:
  15. If 'ay-treeTable' is an Angular component, then verify that it is part of this module.
  16. If 'ay-treeTable' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("[ERROR ->]<ay-treeTable [value]="data">

    <ay-column"): PnmtreetableComponent@0:0
    at SyntaxError.ZoneAwareError (http://localhost:3000/node_modules/zone.js/dist/zone.js:992:33)
    at SyntaxError.BaseError [as constructor] (http://localhost:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:1592:20)
    at new SyntaxError (http://localhost:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:1795:20)
    at TemplateParser.parse (http://localhost:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:11435:23)
    at JitCompiler._compileTemplate (http://localhost:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:27548:72)
    at eval (http://localhost:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:27431:66)
    at Set.forEach (native)
    at JitCompiler._compileComponents (http://localhost:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:27431:23)
    at createResult (http://localhost:3000/node_modules/@angular/compiler/bundles/compiler.umd.js:27313:23)
    at ZoneDelegate.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:334:26)
    at Zone.run (http://localhost:3000/node_modules/zone.js/dist/zone.js:126:43)
    at http://localhost:3000/node_modules/zone.js/dist/zone.js:713:57
    at ZoneDelegate.invokeTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:367:31)
    at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:166:47)
    at drainMicroTaskQueue (http://localhost:3000/node_modules/zone.js/dist/zone.js:546:35)

ngOutletContext (deprecated) to ngTemplateOutletContext

Recently I updated my project from angular 4 to 5. and ng-treetable to 1.3.3

But I'm having trouble with angular 5 with the following error:
image

My Package.json file:
{ "name": "vdapp", "version": "0.0.0", "license": "MIT", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular-devkit/core": "^0.3.1", "@angular/common": "^5.0.0", "@angular/compiler": "^5.0.0", "@angular/core": "^5.0.0", "@angular/forms": "^5.0.0", "@angular/http": "^5.0.0", "@angular/platform-browser": "^5.0.0", "@angular/platform-browser-dynamic": "^5.0.0", "@angular/router": "^5.0.0", "angular-tree-component": "^4.1.0", "bootstrap": "^3.3.7", "core-js": "^2.5.3", "ng-treetable": "^1.3.3", "primeng": "^5.0.2", "rxjs": "^5.5.2", "zone.js": "^0.8.20" }, "devDependencies": { "@angular/cli": "^1.5.0", "@angular/compiler-cli": "^5.0.0", "@types/jasmine": "2.5.38", "@types/node": "^6.0.96", "codelyzer": "~2.0.0", "jasmine-core": "~2.5.2", "jasmine-spec-reporter": "~3.2.0", "karma": "~1.4.1", "karma-chrome-launcher": "~2.0.0", "karma-cli": "~1.0.1", "karma-coverage-istanbul-reporter": "^0.2.0", "karma-jasmine": "^1.1.1", "karma-jasmine-html-reporter": "^0.2.2", "protractor": "~5.1.0", "ts-node": "~2.0.0", "tslint": "~4.5.0", "typescript": "~2.4.0" } }

Kindly look into it.

how to disable particular tree node checkbox

I use treeTable with checkbox, but i want to disable all checkbox of child node.
How can I achieve this?
If do this as official doc says: 'Selection of a particular node can be disabled by setting the selectable property of the node to false.', how to do this in practice, in html or in typescript code?

thank you very much

ng-treetable 1.3.3 update problem

Recently I tried updating ng-treetable package to 1.3.3.

After updating ng-treetable to 1.3.3.

I tried lunching my application.

But I'm facing the following error:

ERROR in Metadata version mismatch for module C:/Users/Administrator/Desktop/RAVIKUMAR/AVCDProject/VDApp/VDApp/node_modules/ng-treetable/ng-treetable.d.ts, found version 4, expected 3, resolving symbol AppModule in C:/Users/Administrator/Desktop/RAVIKUMAR/AVCDProject/VDApp/VDApp/src/app/app.module.ts, resolving symbol AppModule in C:/Users/Administrator/Desktop/RAVIKUMAR/AVCDProject/VDApp/VDApp/src/app/app.module.ts
webpack: Failed to compile.

Demo not rendering

Hi,

My colleagues and I have been trying to use this library, but when we create a fresh ng-cli project and add ng-treetable as a dependency, it seems like stylesheets are missing. You can see below the output of a table that I ripped directly from the demo folder of this project.

image

I'm using ng-treetable v1.2.3 and seeing no errors in google chrome console. However, there are no styles inherited in the project. I suppose this means that ng-treetable directives are being understood, but not styled correctly?

image

To add ng-treetable to a project, we simply add it to package.json, right? All styling and so forth should just work out-of-the-box, right?

Thanks for putting this component together!

PS, can put my minimum working example/attempt onto github it that would help.

Hide Columns

Hi!!

I like a lot this component. I have a dude,
Would I be able to hide a single column?
I have to hide three columns when users colapse a Node. I watch on documentation onNodeCollapse event but I don't know how hide a column.

Thank you in advance!!
Regards!

Elena.

sortable and href function

Hi, your source code has really helped me.
And I have still have two questions, would you like to give me hints?
1, does this can add sorting column function?
2, how can I set hyper link to every node? I want to click the row to jump to another page.
3, does it support mouse hover event?

Does this package provide drag and drop functionality?

Hi @ddvkid ,

You are doing great job by putting your package in npm as an open source.

I'm using your package but I need extra functionality like drag drop.
Along with the drag and drop , I need "copy functionality when we drag and drop the nodes instead of move".

It would be great if your package has this kind of functionality as well. Not only me, many people also looking for this kind of requirement but unfortunately I didn't find any package that gives treeatble along with drag and drop fucntionality

Thanks in Advance,

Regards,
Ravi Kumar

How to set pagination?

  1. After setting rows, pagination options as sample in the homepage.
    As expend the tree items, there is not any page separation, the bottom line for page display is remained, displaying page no. 1.
  2. Even thought window size is set, the page expend continuously over the window size, whenever expend the tree items.

How to adjust column size in the table?

Hi @ddvkid ,
Good day!!
My scenario is:
image
In the above table, name is not coming completely. how to make the size increaseable or decreasable ?

Thanks in advance!!

Have the good rest of the day!!

Regards,
Ravi Kumar

Using lazyloading how to determine which level element is being clicked

Hi,

While using lazyloading, is there way to determine which element level is being clicked in order to fetch the next level element data. Also how to fetch the data of the element clicked. During the time data is being fetched, can we show some loading spinner?

Also is there way to control dynamically whether to bind the data lazily or not.

Also have couple of question on Treetable

  1. Can we create the column dynamically for Treetable with width, alignment and wrap feature,
  2. I want to add sorting to Treetable. Is it currently supported?

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.