module ExpressAdmin module Components module Presenters class DefinitionList < ExpressTemplates::Components::Configurable include ExpressTemplates::Components::Capabilities::Resourceful include ExpressAdmin::Components::Presenters::Helper 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