This repository has been archived by the owner on Oct 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Lists generator
Alexanderius edited this page Jan 1, 2019
·
1 revision
ListsGenerator
is a class for HTML select
control generation. It can generate lists of numbers, years, moths, etc.
public class MyController : Controller
{
public override ControllerResponse Invoke()
{
// This call will generate HTML "<option>" items list with months which you then can set in your combo boxes
var monthsList = Html.ListsGenerator.GenerateMonthsList();
someTpl.Set("Items", monthsList);
...
}
}
<select name="Months">
{Items}
</select>
<select name="Months">
<option value='' selected='selected'>Default label</option>
<option value='0' >January</option>
<option value='1' >February</option>
<option value='2' >March</option>
<option value='3' >April</option>
<option value='4' >May</option>
<option value='5' >June</option>
<option value='6' >July</option>
<option value='7' >August</option>
<option value='8' >September</option>
<option value='9' >October</option>
<option value='10' >November</option>
<option value='11' >December</option>
</select>
- Getting Started
- Main Simplify.Web principles
- Simplify.Web controllers
- Simplify.Web views
- Simplify.Web templates
- Simplify.Web configuration
- Templates variables
- Static content
- Template factory
- Data collector
- String table
- File reader
- Web context
- Environment
- Language manager
- Redirector
- HTML
- Dependency Injection
- Custom Simplify.Web bootstrapper
- Custom controller response
- Mocking controllers and views
- Authentication
- Custom view model binders
- Custom view model validators