color-picker.schema.json
7 months ago
date-picker.schema.json
7 months ago
date-time-picker.schema.json
7 months ago
google-map.schema.json
7 months ago
icon-picker.schema.json
7 months ago
time-picker.schema.json
7 months ago
icon-picker.schema.json
41 lines
| 1 | { |
| 2 | "title": "SCF Icon Picker Field Fragment", |
| 3 | "description": "Type-specific properties for icon picker fields", |
| 4 | "type": "object", |
| 5 | "properties": { |
| 6 | "type": { |
| 7 | "enum": [ "icon_picker" ] |
| 8 | }, |
| 9 | "library": { |
| 10 | "type": "string", |
| 11 | "default": "all", |
| 12 | "description": "Icon library source (all or specific library)" |
| 13 | }, |
| 14 | "tabs": { |
| 15 | "type": "array", |
| 16 | "default": [ "dashicons", "media_library", "url" ], |
| 17 | "description": "Available tabs for icon selection" |
| 18 | }, |
| 19 | "return_format": { |
| 20 | "type": "string", |
| 21 | "default": "string", |
| 22 | "description": "Value returned (string or structured data)" |
| 23 | }, |
| 24 | "default_value": { |
| 25 | "type": "object", |
| 26 | "default": {}, |
| 27 | "description": "Default icon value with type and value properties", |
| 28 | "properties": { |
| 29 | "type": { |
| 30 | "type": [ "string", "null" ], |
| 31 | "description": "Icon type (dashicons, media_library, url)" |
| 32 | }, |
| 33 | "value": { |
| 34 | "type": [ "string", "null" ], |
| 35 | "description": "Icon value (icon class, attachment ID, or URL)" |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | } |
| 41 |