Skip to content

Commit

Permalink
container style
Browse files Browse the repository at this point in the history
  • Loading branch information
olegstan committed Sep 22, 2023
1 parent d2d6bef commit 5a515a2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/Form/functions/formSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ export default function formSelect(Base)
}
}

renderSelect({field, items, text, defaultText, disabled = false, callback, size, textLength = 25, className, style = {}, getContainerStyle = {}} = {})
renderSelect({field, items, text, defaultText, disabled = false, callback, size, textLength = 25, className, style = {}, containerStyle = {}} = {})
{
return <Select
textLength={textLength}
default={defaultText}
placeholder={text}
style={style}
getContainerStyle={getContainerStyle}
containerStyle={containerStyle}
size={size}
className={className}
id={this.getPrefix() + field}
Expand All @@ -138,7 +138,7 @@ export default function formSelect(Base)
/>
}

renderSlimSelect({field, items, text, defaultText, disabled = false, callback, size, textLength = 25, className, style = {}, getContainerStyle = {}} = {})
renderSlimSelect({field, items, text, defaultText, disabled = false, callback, size, textLength = 25, className, style = {}, containerStyle = {}} = {})
{
return <Select
textLength={textLength}
Expand Down Expand Up @@ -170,8 +170,12 @@ export default function formSelect(Base)
/>
}

renderSelectStyle1({field, items, text, defaultText, disabled = false, callback, size, textLength = 25, className, style = {}, getContainerStyle = {}} = {})
renderSelectStyle1({field, items, text, defaultText, disabled = false, callback, size, textLength = 25, className, style = {}, containerStyle = {}} = {})
{
console.log('-------')
console.log(style)
console.log(containerStyle)

return this.renderSelect({...arguments[0], ...{className: 'style1'}})
}
}
Expand Down

0 comments on commit 5a515a2

Please sign in to comment.