ng2-smart-table

ng2-smart-table has missing dependencies completer

混江龙づ霸主 提交于 2020-06-15 04:41:04
问题 I am using Ng2SmartTable and I have this error: ERROR in The target entry-point "ng2-smart-table" has missing dependencies: - @ akveo / ng2-completer I have already tried the following commands and it does not work: 1.npm install --save ng2-smart-table 2.npm i ng2-completer --save 3.npm i rxjs-compat --save 回答1: I also faced the same issue while trying to install ng2-smart-table In ng2-smart-table the CompleterService is imported in the following way import { CompleterService } from '@akveo

How to set multiple selection in dropdown in ng2-smart-table?

坚强是说给别人听的谎言 提交于 2020-04-10 03:06:07
问题 In my app, I have load dynamic values in dropdown list of ng2-smart-table . Now I have to enable multiple selection in dropdown in ng2-smart-table . Note: Multiple selection in dropdown not for checkbox. 回答1: I think you can try with your own custom editor component. I've added a basic select with a multiple attribute , but you can create a custom component more complex as you prefer. Pass data to your component with valuePrepareFunction and voila. settings.ts private settings = { // Previous

How to set multiple selection in dropdown in ng2-smart-table?

主宰稳场 提交于 2020-04-10 02:59:41
问题 In my app, I have load dynamic values in dropdown list of ng2-smart-table . Now I have to enable multiple selection in dropdown in ng2-smart-table . Note: Multiple selection in dropdown not for checkbox. 回答1: I think you can try with your own custom editor component. I've added a basic select with a multiple attribute , but you can create a custom component more complex as you prefer. Pass data to your component with valuePrepareFunction and voila. settings.ts private settings = { // Previous

How to set multiple selection in dropdown in ng2-smart-table?

僤鯓⒐⒋嵵緔 提交于 2020-04-10 02:58:39
问题 In my app, I have load dynamic values in dropdown list of ng2-smart-table . Now I have to enable multiple selection in dropdown in ng2-smart-table . Note: Multiple selection in dropdown not for checkbox. 回答1: I think you can try with your own custom editor component. I've added a basic select with a multiple attribute , but you can create a custom component more complex as you prefer. Pass data to your component with valuePrepareFunction and voila. settings.ts private settings = { // Previous

Ng2-smart-table : Use datepicker format in the field

三世轮回 提交于 2020-01-25 05:09:30
问题 Is there any probability that I can use datepicker format in the ng2-smart-table. jobSettings2: object = { columns: [ { displayName: "Job ID", valueAs: "JobID", align: "left", columnWidth: "", type: "text", required: true }, <ng2-smart-table id="tableID" class="table table-hover" [settings]="jobSettings" [source]="jobSource" (userRowSelect)="selectjobs($event)"></ng2-smart-table> 回答1: For data you can use npm install --save ng-pick-datetime , This provide many features to play with date. If

How to select multiple rows in ng2-smart-table component with checkbox?

时光怂恿深爱的人放手 提交于 2020-01-01 06:16:24
问题 I am using ng2-smart-table from https://akveo.github.io/ng2-smart-table/#/documentation Live Demo: http://akveo.com/ngx-admin/pages/tables/smart-table Please help me with below questions: I want to select multiple rows and call one function so where I need to write this code in ng2-smart-table? Can I select multiple rows and call one function on selected rows ? I have written below code in .ts and .html files: smart-table-component.ts: actions: { add: false, edit: true, delete: false, custom:

ng2-smart-table with paging from back-end (Spring)

拥有回忆 提交于 2019-12-19 17:36:16
问题 I am using a back-end server (Java Spring) that has Pager enabled. I am loading 100 records per page on a HTTP call. On angular2 service, it is consuming the API call with "?page=1&size=100" as the initial call whereas on the client size pager, it shows 10 and moves up to 10 page which is fine. But I am unable to load the next chunk of data from server. I have checked ServerDataSource and used .setPaging(1,100). How can I load the next chunk of data (2-200) and how can I achieve this. Any

Angular 5 + ng2-smart-table: Hide/disable actions column conditionally

大兔子大兔子 提交于 2019-12-13 20:15:40
问题 I have a table built by ng2-smart-table, data in the table has two states as Draft and Ready . When data.status = 'Draft' , it's possible to show actions column for CRUD purpose, but then the state changes to data.status = 'Ready' , I want to disabled the actions column. How to do this conditionally? table setting: tableSettings = { add: { addButtonContent: '<i class="fas fa-plus fa-fw"></i>', createButtonContent: '<i class="fas fa-plus fa-fw"></i>', cancelButtonContent: '<i class="fas fa

Ng2-smart-table bind 'Add New' button event to an external button

流过昼夜 提交于 2019-12-13 03:48:42
问题 I have been using ng2-smart-table plugin for the table grid. There is an Add new button to add entry into the table. But i just want to trigger the 'Add new' event from an external button (May be top of the table but not within the table). There is a feature already available in the ng2-smart-table which is completely reverse to my requirement. That can be achieved by using 'mode:external' Currently this is open with their Github page as an issue. If they don't have an option with Ng2-smart

Angular & ng2-smart-table: Multi selectmode checkbox disable

百般思念 提交于 2019-12-13 03:32:56
问题 I'm using ng2-smart-table to display some data, i've set the selectMode to 'multi' in order to have checkboxes on the left side. In the data i have an array of objects which come with a property "set" which is a boolean and can either be true or false, how do i disable the checkbox if the set property is true? Is there a way to do this? I've already tried making a new renderComponent etc but then i lose the selectAll functionality plus with a renderComponent the selectRow works different.