File

src/app/shared/components/select/select-messages.model.ts

Index

Properties

Constructor

constructor(messages: literal type, i18n: I18n)
Parameters :
Name Type Optional
messages literal type No
i18n I18n No

Properties

add
Type : string
customValidations
Type : object
Default value : {}
empty
Type : string
filter
Type : string
i18n
Type : I18n
noOptions
Type : string
selectionLimit
Type : any
import { I18n } from '@ngx-translate/i18n-polyfill';

import * as _ from 'lodash';

export class SelectMessages {
  i18n: I18n;

  empty: string;
  selectionLimit: any;
  customValidations = {};
  filter: string;
  add: string;
  noOptions: string;

  constructor(messages: {}, i18n: I18n) {
    this.i18n = i18n;

    this.empty = this.i18n('No items selected.');
    this.selectionLimit = {
      tooltip: this.i18n('Deselect item to select again'),
      text: this.i18n('Selection limit reached')
    };
    this.filter = this.i18n('Filter tags');
    this.add = this.i18n('Add badge'); // followed by " '{{filter.value}}'"
    this.noOptions = this.i18n('There are no items available.');

    _.merge(this, messages);
  }
}

result-matching ""

    No results matching ""