Link

Smart Language

Smart Language is an model and has some property.

export class SmartLanguage {
    actionsColumnHeader?: string;
    lengthMenu?: string;
    search?: string;
    searchPlaceholder?: string;
    info?: string;
    filteredInfo?: string;
    paginationPrevious?: string;
    paginationNext?: string;
}
PropertyExplanation
actionColumnHeaderhtml content of action column header
lengthMenuhtml content of length menu
searchhtml content of filter
searchPlaceholderplaceholder of filter input
infohtml content of info
filteredInfohtml content of filteredInfo
paginationPreviouscontent of previous pagination button
paginationNextcontent of next pagination button

Example SmartLanguage


model: SmartModel = {
    properties: [
      ...
    ],
    language: {
        actionsColumnHeader: 'Actions',
        filteredInfo: '(Filtered from **TOTAL** entries)',
        info: 'Showing **START** to **END** of **TOTAL** entries',
        lengthMenu: 'Show **LENGTH** entries',
        paginationNext: 'Next',
        paginationPrevious: 'Previous',
        search: 'Search : **SEARCH**',
        searchPlaceholder: 'Search'
    }
};