Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 18:50:27 +01:00
Property extend wizard field class
Dieser Commit ist enthalten in:
Ursprung
857a159d0c
Commit
1f10a9e4f3
1 geänderte Dateien mit 1 neuen und 4 gelöschten Zeilen
|
@ -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]
|
||||||
|
|
Laden …
In neuem Issue referenzieren