1
0
Fork 0

Property extend wizard field class

Dieser Commit ist enthalten in:
Angus McLeod 2020-04-29 12:28:57 +10:00
Ursprung 857a159d0c
Commit 1f10a9e4f3

Datei anzeigen

@ -10,15 +10,12 @@ module CustomWizardFieldExtension
:content :content
def initialize(attrs) def initialize(attrs)
super
@attrs = attrs || {} @attrs = attrs || {}
@id = attrs[:id]
@type = attrs[:type]
@required = !!attrs[:required]
@description = attrs[:description] @description = attrs[:description]
@image = attrs[:image] @image = attrs[:image]
@key = attrs[:key] @key = attrs[:key]
@min_length = attrs[:min_length] @min_length = attrs[:min_length]
@value = attrs[:value]
@file_types = attrs[:file_types] @file_types = attrs[:file_types]
@limit = attrs[:limit] @limit = attrs[:limit]
@property = attrs[:property] @property = attrs[:property]