module ExpressAdmin module Components module Presenters class DefinitionList < ExpressTemplates::Components::Configurable include ExpressTemplates::Components::Capabilities::Resourceful COLUMN_REGEX_LIST = { in_words: /(\w+)_in_words/ } tag :dl list_types = {} list_types[:array] = {description: "List of fields on the current resource", options: -> {resource.columns.map(&:name)}} list_types[:hash] = {description: "List of terms and definitions."} has_argument :list, "A list of things to define, presented as