Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Widget mit Kontrollfrage

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Widget mit Kontrollfrage

    This topic has been deleted. Only users with topic management privileges can see it.
    • sissiwup
      sissiwup last edited by

      Hallo,

      wie erstelle ich ein Widget, welches erst fragt, wollen Sie wirklich …

      Es soll das Garagentor öffnen.

      1 Reply Last reply Reply Quote 0
      • ruhr70
        ruhr70 last edited by

        Als Beispiel:

        Ein Button öffnet einen Dialog mit einem View.

        Im geöffnetem View gibt es einen button, wollen Sie wirklich mit der ID zum Garagentor öffnen.

        Der Button für "Garagentor öffnen" -> öffnet einen Dialog mit einem View (hier: Test5)

        [{"tpl":"tplContainerButtonDialog","data":{"visibility-cond":"==","visibility-val":1,"buttontext":"Gragentor öffnen","padding":"5","contains_view":"Test5"},"style":{"left":"382px","top":"107px","width":"172px","height":"36px"},"widgetSet":"jqui"}]
        

        Der View mit dem Bestätigungsbutton "wollen Sie wirklich"

        {
          "settings": {
            "style": {},
            "theme": "redmond",
            "sizex": "",
            "sizey": "",
            "hideDescription": false,
            "gridSize": ""
          },
          "widgets": {
            "e00001": {
              "tpl": "tplBasicState",
              "data": {
                "oid": "garagentor-id",
                "visibility-cond": "==",
                "visibility-val": "",
                "value": "0",
                "html": "
        wollen Sie wirklich?",
                "visibility-oid": "",
                "name": "",
                "comment": ""
              },
              "style": {
                "left": "0",
                "top": "0",
                "background": "rgb(204, 204, 204) none repeat scroll 0% 0% / auto padding-box border-box",
                "width": "90px",
                "height": "55px",
                "z-index": "10",
                "color": "rgb(68, 68, 68)",
                "text-align": "center",
                "text-shadow": "none",
                "font-family": "'Lucida Grande', 'Lucida Sans', Arial, sans-serif",
                "font-style": "normal",
                "font-variant": "normal",
                "font-weight": "bold",
                "font-size": "12px",
                "line-height": "14px",
                "letter-spacing": "0",
                "word-spacing": "0px",
                "background-position": "0% 0%",
                "background-size": "auto",
                "background-clip": "",
                "background-origin": "",
                "padding": "",
                "box-shadow": "0px 0px 1px 1px",
                "border-style": "solid",
                "border-radius": "",
                "border-width": "1px"
              },
              "widgetSet": "basic"
            }
          },
          "name": "Test5",
          "rerender": false,
          "filterList": []
        }
        

        2858_philips_ok.pcapng.txt

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Support us

        ioBroker
        Community Adapters
        Donate
        FAQ Cloud / IOT
        HowTo: Node.js-Update
        HowTo: Backup/Restore
        Downloads
        BLOG

        881
        Online

        31.9k
        Users

        80.2k
        Topics

        1.3m
        Posts

        2
        2
        935
        Loading More Posts
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as topic
        Log in to reply
        Community
        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
        The ioBroker Community 2014-2023
        logo