Filters for preconfigured columns can be disabled using props.
(Should be merged after 'Dynamic columns in GAB table')
Change-Id: Id740ceb211c3978499b9c69197929a43e61e9cdc
Issue-ID: SDC-2234
Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
*/
export class PathsAndNamesDefinition {
- constructor(public path: string, public friendlyName: string, public searchable: boolean) {}
+ constructor(public path: string, public friendlyName: string, public searchable: boolean = true) {}
}
\ No newline at end of file
</span>
<br/>
<input
+ *ngIf="isSearchable(col.name)"
type='text'
class="datattable-input-filter"
placeholder='Filter column...'
this.addNewColumn = true;
}
+ isSearchable(columnName){
+ let selectedPathAndName = this.pathsandnames.filter(function(pathandname){
+ return pathandname.friendlyName === columnName;
+ })[0];
+ return selectedPathAndName.searchable;
+ }
+
updateColumnFilter(event, column) {
const val = event.target.value.toLowerCase();
this.columnsFilters.set(column, val);
let pathsandnames: PathsAndNamesDefinition[] = [];
if(typeof uiConfiguration.gab === 'undefined') {
- noConfig = true
+ noConfig = true;
} else {
const gabConfig: GabConfig = uiConfiguration.gab
.find(config => config.artifactType === artifact.artifactType);