helpKnowledge

search_left
Minnie
arrow_dropdown
OverviewCode

Collections

Collections in Knowledge are groupings of Items and define the schema or structure of the custom data stored in those Items. A Knowledge site can have multiple attached Collections. A Collection’s fields define the structure of the Items within it.

Model

FieldTypeDescription
_idObjectIdThe unique identifier for the Collection
lastUpdatedDateDate Collection was last updated
createdOnDateDate Collection was created
nameStringName given to Collection

Default Fields

Each collection has a number of fields that are always present. Some of these fields are editable and some of them cannot be changed by users.

Field NameField TypeEditableDescription
_archivedBooleantrueItems set to archived will not be published
_draftBooleanfalseItems set to draft will not be published
jsxjson
import * as React from 'react'
import classNames from 'classnames'
import cls from './checkbox.scss'

// @flow
type UikCheckboxProps = {
  className?: ?String,
  label?: React.Node,
}

const UikCheckbox = ({
  label,
  className,
  ...rest
}: UikCheckboxProps) => (
  <label className={ classNames(cls.wrapper, className) }>
    <input
      className={ cls.checkbox }
      type="checkbox"
      { ...rest }
    />
    <span className={ cls.label }>
      <span className={ cls.checkIcon } />
      {label}
    </span>
  </label>
)

UikCheckbox.defaultProps = {
  label: null,
  className: null,
}

export default UikCheckbox