Comments (1)
Figured it out. I need to set the row.value before configuring the TitleFormatterClosure.
Example:
row = FormRowDescriptor(tag: Static.categories, rowType: .MultipleSelector, title: "Categories")
row.configuration[FormRowDescriptor.Configuration.Options] = [0, 1, 2, 3, 4]
row.configuration[FormRowDescriptor.Configuration.AllowsMultipleSelection] = true
row.value = "Restaurant"
row.configuration[FormRowDescriptor.Configuration.TitleFormatterClosure] = { value in
switch( value ) {
case 0:
return "Restaurant"
case 1:
return "Pub"
case 2:
return "Shop"
case 3:
return "Hotel"
case 4:
return "Camping"
default:
return nil
}
} as TitleFormatterClosure
from swiftforms.
Related Issues (20)
- Validation HOT 1
- placeholder text disappear when textfield is erased HOT 1
- How to set value to type label HOT 1
- Validation Not Working when Submit button is clicked
- [booleanSwitch] default value HOT 2
- new Xcode 9.2 warnings HOT 3
- Is the current HEAD releasable? HOT 1
- Error Argument labels '(rawValue:)' do not match any available overloads
- multilineText placeholder HOT 1
- Form validation
- How to open Camera or Gallery Alert
- Swift 4.2 Xcode 10 support HOT 1
- Reused Pickerview displaying the previous value
- Why your textfield cell can auto scroll keyboard topοΌ HOT 1
- 'automaticDimension' has been renamed to 'UITableViewAutomaticDimension' HOT 1
- swift 5 Xcode 10.2 support HOT 3
- Crash when setting font in cell appearance HOT 1
- Plans to upgrade time
- Picker format
- custom cell error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftforms.