8000 Расширение для выбора даты или времени · Issue #85 · divkit/divkit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Расширение для выбора даты или времени #85
Open
@rsbooster

Description

@rsbooster

Нужно сделать расширение, которое навешивается на input, и при нажатии показывает системный пикер даты или времени (определяется параметром mode). Выбранное значение сохраняется в text_variable.

{
    "card": {
        "log_id": "div2_sample_card",
        "variables": [
            {
                "name": "value",
                "type": "string",
                "value": ""
            }
        ],
        "states": [
            {
                "state_id": 0,
                "div": {
                    "type": "input",
                    "text_variable": "value",
                    "extensions": [
                        {
                            "id": "date_time_picker",
                            "params": {
                                "text_variable": "value",
                                "mode": "date|time"
                            }
                        }
                    ],
                    "width": {
                        "type": "fixed",
                        "value": 100
                    },
                    "height": {
                        "type": "fixed",
                        "value": 20
                    }
                }
            }
        ]
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0