File

src/interfaces/IParams.ts

Index

Properties

Properties

api
api: string
Type : string

ycs restful api endpoint

cols
cols: IParamsCol[]
Type : IParamsCol[]

Columns

customButtons
customButtons: IParamsCustomButton[]
Type : IParamsCustomButton[]
Optional

Custom buttons in list

dt
dt: DataTable
Type : DataTable
Optional

DataTable

editorButtons
editorButtons: IParamsEditorButton[]
Type : IParamsEditorButton[]
Optional

Custom buttons while editing

formdata
formdata: boolean
Type : boolean
Optional

Whether post data as formdata. Default is json.

globalFilters
globalFilters: any
Type : any
Optional

Global filters for query

globalOptions
globalOptions: any
Type : any
Optional

Global options for query

hideAdd
hideAdd: boolean
Type : boolean
Optional

Hide button add

hideCancel
hideCancel: boolean
Type : boolean
Optional

Hide button cancel

hideCount
hideCount: boolean
Type : boolean
Optional

Hide count

hideDelete
hideDelete: boolean
Type : boolean
Optional

Hide button delete

hideExport
hideExport: boolean
Type : boolean
Optional

Hide button export cvs

hideSave
hideSave: boolean
Type : boolean
Optional

Hide button save

onShow
onShow: function
Type : function
Optional

Event on modal show

preEdit
preEdit: function
Type : function
Optional

Before edit a row

preSave
preSave: function
Type : function
Optional

Before save a row

renderer
renderer: function
Type : function
Optional

Render paginated data after query

rows
rows: number
Type : number
Optional

Number of rows a page

title
title: literal type
Type : literal type

Titles

import { DataTable } from 'primeng/primeng';
import { RestAdminComponent } from '../component';
import {
  IPaginateData,
  IParamsCol,
  IParamsCustomButton,
  IParamsEditorButton,
} from './';

export interface IParams {
  /**
   * ycs restful api endpoint
   */
  api: string;

  /**
   * Titles
   */
  title: {
    /**
     * Title in list
     */
    list: string;

    /**
     * Title while editing
     */
    edit: string;
  };

  /**
   * Columns
   */
  cols: IParamsCol[];

  /**
   * Number of rows a page
   */
  rows?: number;

  /**
   * Event on modal show
   */
  onShow?: (self: RestAdminComponent) => void;

  /**
   * Hide button add
   */
  hideAdd?: boolean;

  /**
   * Hide count
   */
  hideCount?: boolean;

  /**
   * Hide button delete
   */
  hideDelete?: boolean;

  /**
   * Hide button save
   */
  hideSave?: boolean;

  /**
   * Hide button cancel
   */
  hideCancel?: boolean;

  /**
   * Hide button export cvs
   */
  hideExport?: boolean;

  /**
   * DataTable
   */
  dt?: DataTable;

  /**
   * Custom buttons in list
   */
  customButtons?: IParamsCustomButton[];

  /**
   * Custom buttons while editing
   */
  editorButtons?: IParamsEditorButton[];

  /**
   * Global filters for query
   */
  globalFilters?: any;

  /**
   * Global options for query
   */
  globalOptions?: any;

  /**
   * Whether post data as formdata. Default is json.
   */
  formdata?: boolean;

  /**
   * Before save a row
   */
  preSave?: (params: any) => void;

  /**
   * Before edit a row
   */
  preEdit?: (self: RestAdminComponent) => void;

  /**
   * Render paginated data after query
   */
  renderer?: (data: IPaginateData) => IPaginateData;
}

results matching ""

    No results matching ""