class Velvet::MultiSelectField

Defined in:

velvet/schema.cr

Constructors

Instance Method Summary

Instance methods inherited from class Velvet::Field

condition : Hash(String, String) -> Bool | Nil condition, id : String id, label : String label, matches?(ctx : Hash(String, String)) : Bool matches?, required : Bool required

Constructor methods inherited from class Velvet::Field

new(id : String, label : String, required : Bool = true, condition : Nil | Hash(String, String) -> Bool = nil) new

Constructor Detail

def self.new(id, label, options : Array(String), defaults : Array(String) = [] of String, cast : Velvet::Cast = Cast::String, required = false, condition = nil) #

[View source]

Instance Method Detail

def cast : Cast #

[View source]
def defaults : Array(String) #

[View source]
def options : Array(String) #

[View source]