class Ariadne::Form::BaseInputComponent
def add_label_classes(*class_names)
def add_label_classes(*class_names) # label_arguments[:class] = merge_class_names( # label_arguments[:class], *class_names # ) end
def before_render
def before_render sure to evaluate the component's content block so slots are defined t _attributes = { : {}, [].tap do |memo| << @validation_id if @validation_message << @caption_id if @init_caption || caption? if ids.empty? _attributes[:aria][:describedby] = ids.join(" ")
def caption?
def caption? on.present?
def copyable?
def copyable? ble.present?
def form_control?
Whether or not to wrap the component in a FormControl, which renders a
def form_control? html_attrs.delete(:form_control) { true } end
def full_width?
def full_width? @full_width end
def hidden?
def hidden? !!html_attrs[:hidden] end
def html_attributes
def html_attributes html_attributes = super html_attributes = html_attributes.concat(" required") if required? html_attributes end
def label_arguments
def label_arguments {} end
def label_attributes
def label_attributes tag.attributes(@label_attributes || {}) end
def required?
def required? red.present?