Sha256: 57cff0b8a74669e3af9f733a66ac48615c9fcc1d40d30462795da2200ae9755b

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

## Control Usages

```javascript
{
	"id" : "name",
	"title" : "Title",
	"description" : "Title of page",
	"control" : "input-text",
	"properties" : "required  placeholder='type a page title'",
	"defaultValue" : ""
}
```

###  Loading data into controls from Ajax (lists)

```javascript
{
	"id" : "homepage",
	"title" : "Select homepage",
	"description" : "Select the homepage",
	"control" : "collection",
	"defaultValue" : "",
	"ajax" : {
		"url" : "/content/mycollection",
		"displayfield" : "title",
		"valuefield" : "href"
	}
}
```

###  Loading data into controls from Ajax (single values)

```javascript
{
	"id" : "name",
	"title" : "Title",
	"description" : "Title of page",
	"control" : "input-text",
	"properties" : "required  placeholder='type a page title'",
	"defaultValue" : "",
	"ajax" : {
		"url" : "/content/pages/pageone",
		"displayfield" : "title"
	}
}
```

### Available data types

> input-hidden
> input-color
> input-date
> input-text
> input-password
> input-email
> input-url
> input-number
> input-range
> input-readonly
> imageupload
> mediaupload
> textarea
> richtext
> kodalinkeditor
> truefalse
> collection
> collection-multi

### Collections

> collection
> collection-multi

```javascript
{
	"id" : "homepage",
	"title" : "Select homepage",
	"description" : "Select the homepage",
	"control" : "collection",
	"defaultValue" : "",
	"values" : "value1,value2,value3,value4"
}
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
koda-0.0.11 public/koda/Help/DataTypes.txt