datatables.net-editor-server
    Preparing search index...

    Class Column

    Index

    Constructors

    • Create a new column

      Parameters

      • dbField: string

        Name of the database column

      • Optionalname: string

        Name to use in the JSON output. If not given then the dbField name is used.

      Returns Column

    Methods

    • Get the options class for the options to get for ColumnControl

      Returns Options

    • Set the options class for the options to get for ColumnControl

      Parameters

      • options: Options

        Options configuration for ColumnControl

      Returns this

    • Get the database column name

      Returns string

      Configured column name

    • Set the database column name

      Parameters

      • name: string

        Column name to set

      Returns Column

      Self for chaining

    • Get formatter for the field's data.

      Returns IFormatter

      Formatter

    • Set the get formatter.

      When the data has been retrieved from the server, it can be passed through a formatter here, which will manipulate (format) the data as required. This can be useful when, for example, working with dates and a particular format is required on the client-side.

      Parameters

      Returns Column

      Self for chaining.

    • Get the currently applied get value.

      Returns any

      Value - will be undefined by default.

    • Set the get value for the field.

      If given, then this value is used to send to the client-side, regardless of what value is held by the database.

      Parameters

      • val: any

        Value to set

      Returns Column

      Self for chaining

    • Get the column's configured name.

      Returns string

      Current name.

    • Set the column's name.

      The name is typically the same as the dbField name, since it makes things less confusing(!), but it is possible to set a different name for the data which is used in the JSON returned to DataTables.

      Parameters

      • name: string

        Name to set

      Returns Column

      Self for chaining