[{"data":1,"prerenderedAt":1687},["ShallowReactive",2],{"navigation":3,"\u002Ffeatures\u002Fdynamic-content":252,"\u002Ffeatures\u002Fdynamic-content-surround":1682},[4,89,128,171,213,217,248],{"title":5,"path":6,"stem":7,"children":8,"icon":88},"Guide","\u002Fguide","1.guide\u002F01.index",[9,10,14,18,22,26,30,34,38,42,73],{"title":5,"path":6,"stem":7},{"title":11,"path":12,"stem":13},"Install","\u002Fguide\u002Finstall","1.guide\u002F02.install",{"title":15,"path":16,"stem":17},"First widget","\u002Fguide\u002Ffirst-widget","1.guide\u002F03.first-widget",{"title":19,"path":20,"stem":21},"Concepts","\u002Fguide\u002Fconcepts","1.guide\u002F05.concepts",{"title":23,"path":24,"stem":25},"Apple data transport","\u002Fguide\u002Ftransport","1.guide\u002F06.transport",{"title":27,"path":28,"stem":29},"Doctor","\u002Fguide\u002Fdoctor","1.guide\u002F07.doctor",{"title":31,"path":32,"stem":33},"CLI","\u002Fguide\u002Fcli","1.guide\u002F08.cli",{"title":35,"path":36,"stem":37},"Core vs extended","\u002Fguide\u002Ftiers","1.guide\u002F09.tiers",{"title":39,"path":40,"stem":41},"Troubleshooting","\u002Fguide\u002Ftroubleshooting","1.guide\u002F10.troubleshooting",{"title":43,"path":44,"stem":45,"children":46,"icon":72},"Platform setup","\u002Fguide\u002Fsetup","1.guide\u002F12.setup\u002F1.index",[47,48,52,56,60,64,68],{"title":43,"path":44,"stem":45},{"title":49,"path":50,"stem":51},"Android setup","\u002Fguide\u002Fsetup\u002Fandroid","1.guide\u002F12.setup\u002F2.android",{"title":53,"path":54,"stem":55},"iOS setup","\u002Fguide\u002Fsetup\u002Fios","1.guide\u002F12.setup\u002F3.ios",{"title":57,"path":58,"stem":59},"macOS setup","\u002Fguide\u002Fsetup\u002Fmacos","1.guide\u002F12.setup\u002F4.macos",{"title":61,"path":62,"stem":63},"Windows setup","\u002Fguide\u002Fsetup\u002Fwindows","1.guide\u002F12.setup\u002F5.windows",{"title":65,"path":66,"stem":67},"Linux setup","\u002Fguide\u002Fsetup\u002Flinux","1.guide\u002F12.setup\u002F6.linux",{"title":69,"path":70,"stem":71},"Desktop webview","\u002Fguide\u002Fsetup\u002Fdesktop","1.guide\u002F12.setup\u002F7.desktop","i-lucide-monitor-smartphone",{"title":74,"icon":75,"path":76,"stem":77,"children":78,"page":87},"Recipes","i-lucide-chef-hat","\u002Fguide\u002Frecipes","1.guide\u002F13.recipes",[79,83],{"title":80,"path":81,"stem":82},"Multi-widget","\u002Fguide\u002Frecipes\u002Fmulti-widget","1.guide\u002F13.recipes\u002F4.multi-widget",{"title":84,"path":85,"stem":86},"Testing your widget","\u002Fguide\u002Frecipes\u002Ftesting","1.guide\u002F13.recipes\u002F5.testing",false,"i-lucide-rocket",{"title":90,"path":91,"stem":92,"children":93,"icon":127},"Elements","\u002Felements","2.elements\u002F1.index",[94,95,99,103,107,111,115,119,123],{"title":90,"path":91,"stem":92},{"title":96,"path":97,"stem":98},"Layout elements","\u002Felements\u002Flayout","2.elements\u002F2.layout",{"title":100,"path":101,"stem":102},"Text elements","\u002Felements\u002Ftext","2.elements\u002F3.text",{"title":104,"path":105,"stem":106},"Media elements","\u002Felements\u002Fmedia","2.elements\u002F4.media",{"title":108,"path":109,"stem":110},"Data elements","\u002Felements\u002Fdata","2.elements\u002F5.data",{"title":112,"path":113,"stem":114},"Interactive elements","\u002Felements\u002Finteractive","2.elements\u002F6.interactive",{"title":116,"path":117,"stem":118},"Spacing elements","\u002Felements\u002Fspacing","2.elements\u002F7.spacing",{"title":120,"path":121,"stem":122},"Style","\u002Felements\u002Fstyle","2.elements\u002F8.style",{"title":124,"path":125,"stem":126},"Colors","\u002Felements\u002Fcolors","2.elements\u002F9.colors","i-lucide-blocks",{"title":129,"path":130,"stem":131,"children":132,"icon":170},"Features","\u002Ffeatures","2.features\u002F01.index",[133,134,138,142,146,150,154,158,162,166],{"title":129,"path":130,"stem":131},{"title":135,"path":136,"stem":137},"Dynamic Island","\u002Ffeatures\u002Fdynamic-island","2.features\u002F02.dynamic-island",{"title":139,"path":140,"stem":141},"Interactive widgets","\u002Ffeatures\u002Finteractive","2.features\u002F03.interactive",{"title":143,"path":144,"stem":145},"Live activities","\u002Ffeatures\u002Flive-activities","2.features\u002F04.live-activities",{"title":147,"path":148,"stem":149},"Timelines and transitions","\u002Ffeatures\u002Ftimelines","2.features\u002F05.timelines",{"title":151,"path":152,"stem":153},"Remote data","\u002Ffeatures\u002Fremote-data","2.features\u002F06.remote-data",{"title":155,"path":156,"stem":157},"Widget updater","\u002Ffeatures\u002Fwidget-updater","2.features\u002F07.widget-updater",{"title":159,"path":160,"stem":161},"Instances","\u002Ffeatures\u002Finstances","2.features\u002F08.instances",{"title":163,"path":164,"stem":165},"Conditions, lists and templates","\u002Ffeatures\u002Fdynamic-content","2.features\u002F09.dynamic-content",{"title":167,"path":168,"stem":169},"Images","\u002Ffeatures\u002Fimages","2.features\u002F10.images","i-lucide-sparkles",{"title":172,"icon":173,"path":174,"stem":175,"children":176,"page":87},"API","i-lucide-file-code","\u002Fapi","3.api",[177,181,185,189,193,197,201,205,209],{"title":178,"path":179,"stem":180},"JavaScript API","\u002Fapi\u002Fjs","3.api\u002F1.js",{"title":182,"path":183,"stem":184},"JS reference","\u002Fapi\u002Freference","3.api\u002F2.reference",{"title":186,"path":187,"stem":188},"Rust API","\u002Fapi\u002Frust","3.api\u002F3.rust",{"title":190,"path":191,"stem":192},"Tauri commands","\u002Fapi\u002Fcommands","3.api\u002F4.commands",{"title":194,"path":195,"stem":196},"Plugin config","\u002Fapi\u002Fplugin-config","3.api\u002F5.plugin-config",{"title":198,"path":199,"stem":200},"Cargo features","\u002Fapi\u002Fcargo-features","3.api\u002F6.cargo-features",{"title":202,"path":203,"stem":204},"Environment variables","\u002Fapi\u002Fenv","3.api\u002F7.env",{"title":206,"path":207,"stem":208},"Permissions","\u002Fapi\u002Fpermissions","3.api\u002F8.permissions",{"title":210,"path":211,"stem":212},"JSON Schema","\u002Fapi\u002Fjson-schema","3.api\u002F9.json-schema",{"title":214,"path":215,"stem":216},"Showcase","\u002Fshowcase","4.showcase",{"title":218,"path":219,"stem":220,"children":221,"icon":247},"Contributing","\u002Fcontributing","5.contributing\u002F1.index",[222,223,227,231,235,239,243],{"title":218,"path":219,"stem":220},{"title":224,"path":225,"stem":226},"Development guide","\u002Fcontributing\u002Fdevelopment","5.contributing\u002F2.development",{"title":228,"path":229,"stem":230},"Render testing (config → geometry \u002F pixels)","\u002Fcontributing\u002Frender-testing","5.contributing\u002F3.render-testing",{"title":232,"path":233,"stem":234},"Visual stand (Level-2 pixels)","\u002Fcontributing\u002Fvisual-stand","5.contributing\u002F4.visual-stand",{"title":236,"path":237,"stem":238},"Linux harness (Docker)","\u002Fcontributing\u002Flinux-harness","5.contributing\u002F5.linux-harness",{"title":240,"path":241,"stem":242},"Windows surface split","\u002Fcontributing\u002Fwindows-surfaces","5.contributing\u002F6.windows-surfaces",{"title":244,"path":245,"stem":246},"Mutation testing","\u002Fcontributing\u002Fmutation-testing","5.contributing\u002F7.mutation-testing","i-lucide-git-pull-request",{"title":249,"path":250,"stem":251},"Changelog","\u002Fchangelog","6.changelog",{"id":253,"title":163,"body":254,"description":1675,"extension":1676,"generated":87,"links":1677,"meta":1678,"navigation":1679,"path":164,"seo":1680,"stem":165,"__hash__":1681},"docs\u002F2.features\u002F09.dynamic-content.md",{"type":255,"value":256,"toc":1663},"minimark",[257,274,283,310,418,543,546,553,562,859,889,899,1228,1255,1262,1291,1478,1497,1504,1521,1647,1659],[258,259,260,261,265,266,269,270,273],"p",{},"A widget can change by itself, without the app running: switch to prepared layouts at set\ntimes, show text in the device language, and fetch its own data. All three live in the\nsame ",[262,263,264],"code",{},"WidgetConfig",", and every platform resolves them right before drawing\n(",[262,267,268],{},"src\u002Fresolve.rs",", with Swift, Kotlin and TypeScript ports checked against the same\nfixtures in ",[262,271,272],{},"tests\u002Ffixtures\u002Fresolve\u002F",").",[275,276,278,279,282],"h2",{"id":277},"conditions-when","Conditions (",[262,280,281],{},"when",")",[258,284,285,287,288,291,292,295,296,299,300,299,303,299,306,309],{},[262,286,281],{}," on any element inside ",[262,289,290],{},"children"," (or on a family root) keeps the element only when\nthe condition holds; it is stripped before drawing. A condition reads one value by ",[262,293,294],{},"path","\n(the same paths as placeholders: ",[262,297,298],{},"data.…",", ",[262,301,302],{},"t.…",[262,304,305],{},"locale",[262,307,308],{},"instance",", loop variables):",[311,312,317],"pre",{"className":313,"code":314,"language":315,"meta":316,"style":316},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{ \"type\": \"text\", \"content\": \"Rain soon\", \"when\": { \"path\": \"data.rain\", \"gt\": 0.5 } }\n","json","",[262,318,319],{"__ignoreMap":316},[320,321,324,328,331,335,338,341,343,347,349,352,354,357,359,361,363,366,368,370,372,374,376,378,381,383,386,388,390,392,395,397,399,401,404,406,408,412,415],"span",{"class":322,"line":323},"line",1,[320,325,327],{"class":326},"sMK4o","{",[320,329,330],{"class":326}," \"",[320,332,334],{"class":333},"spNyl","type",[320,336,337],{"class":326},"\"",[320,339,340],{"class":326},":",[320,342,330],{"class":326},[320,344,346],{"class":345},"sfazB","text",[320,348,337],{"class":326},[320,350,351],{"class":326},",",[320,353,330],{"class":326},[320,355,356],{"class":333},"content",[320,358,337],{"class":326},[320,360,340],{"class":326},[320,362,330],{"class":326},[320,364,365],{"class":345},"Rain soon",[320,367,337],{"class":326},[320,369,351],{"class":326},[320,371,330],{"class":326},[320,373,281],{"class":333},[320,375,337],{"class":326},[320,377,340],{"class":326},[320,379,380],{"class":326}," {",[320,382,330],{"class":326},[320,384,294],{"class":385},"sBMFI",[320,387,337],{"class":326},[320,389,340],{"class":326},[320,391,330],{"class":326},[320,393,394],{"class":345},"data.rain",[320,396,337],{"class":326},[320,398,351],{"class":326},[320,400,330],{"class":326},[320,402,403],{"class":385},"gt",[320,405,337],{"class":326},[320,407,340],{"class":326},[320,409,411],{"class":410},"sbssI"," 0.5",[320,413,414],{"class":326}," }",[320,416,417],{"class":326}," }\n",[419,420,421,434],"table",{},[422,423,424],"thead",{},[425,426,427,431],"tr",{},[428,429,430],"th",{},"Key",[428,432,433],{},"Holds when",[435,436,437,452,470,480,500,524],"tbody",{},[425,438,439,449],{},[440,441,442,445,446],"td",{},[262,443,444],{},"eq"," \u002F ",[262,447,448],{},"ne",[440,450,451],{},"equal \u002F not equal (JSON equality, numbers by value; a missing value fails both)",[425,453,454,467],{},[440,455,456,445,458,445,461,445,464],{},[262,457,403],{},[262,459,460],{},"gte",[262,462,463],{},"lt",[262,465,466],{},"lte",[440,468,469],{},"both sides are numbers and compare so",[425,471,472,477],{},[440,473,474],{},[262,475,476],{},"in",[440,478,479],{},"the value equals one of the array items",[425,481,482,487],{},[440,483,484],{},[262,485,486],{},"exists",[440,488,489,492,493,496,497],{},[262,490,491],{},"true",": the value is present; ",[262,494,495],{},"false",": it is missing or ",[262,498,499],{},"null",[425,501,502,507],{},[440,503,504,505],{},"only ",[262,506,294],{},[440,508,509,510,299,512,299,515,299,518,299,521,523],{},"the value is truthy (not ",[262,511,495],{},[262,513,514],{},"0",[262,516,517],{},"\"\"",[262,519,520],{},"[]",[262,522,499],{},", missing)",[425,525,526,537],{},[440,527,528,445,531,445,534],{},[262,529,530],{},"all",[262,532,533],{},"any",[262,535,536],{},"not",[440,538,539,540],{},"combine other conditions: ",[262,541,542],{},"{ \"any\": [ {…}, {…} ] }",[258,544,545],{},"Several operators in one object must all hold. A malformed condition is false.",[275,547,549,550,282],{"id":548},"lists-from-data-repeat","Lists from data (",[262,551,552],{},"repeat",[258,554,555,557,558,561],{},[262,556,552],{}," turns an array into elements. It is replaced in its parent by one copy of\n",[262,559,560],{},"template"," per item, so it works inside any stack, grid or list:",[311,563,565],{"className":313,"code":564,"language":315,"meta":316,"style":316},"{\n  \"data\": { \"days\": [{ \"d\": \"Mon\", \"hi\": 21 }, { \"d\": \"Tue\", \"hi\": 18 }] },\n  \"small\": {\n    \"type\": \"vstack\",\n    \"children\": [\n      { \"type\": \"repeat\", \"each\": \"data.days\", \"as\": \"day\", \"limit\": 5,\n        \"template\": { \"type\": \"text\", \"content\": \"{{index}}. {{day.d}} {{day.hi}}°\" } }\n    ]\n  }\n}\n",[262,566,567,572,668,683,705,719,791,841,847,853],{"__ignoreMap":316},[320,568,569],{"class":322,"line":323},[320,570,571],{"class":326},"{\n",[320,573,575,578,581,583,585,587,589,592,594,596,599,601,604,606,608,610,613,615,617,619,622,624,626,629,632,634,636,638,640,642,644,647,649,651,653,655,657,659,662,665],{"class":322,"line":574},2,[320,576,577],{"class":326},"  \"",[320,579,580],{"class":333},"data",[320,582,337],{"class":326},[320,584,340],{"class":326},[320,586,380],{"class":326},[320,588,330],{"class":326},[320,590,591],{"class":385},"days",[320,593,337],{"class":326},[320,595,340],{"class":326},[320,597,598],{"class":326}," [{",[320,600,330],{"class":326},[320,602,603],{"class":410},"d",[320,605,337],{"class":326},[320,607,340],{"class":326},[320,609,330],{"class":326},[320,611,612],{"class":345},"Mon",[320,614,337],{"class":326},[320,616,351],{"class":326},[320,618,330],{"class":326},[320,620,621],{"class":410},"hi",[320,623,337],{"class":326},[320,625,340],{"class":326},[320,627,628],{"class":410}," 21",[320,630,631],{"class":326}," },",[320,633,380],{"class":326},[320,635,330],{"class":326},[320,637,603],{"class":410},[320,639,337],{"class":326},[320,641,340],{"class":326},[320,643,330],{"class":326},[320,645,646],{"class":345},"Tue",[320,648,337],{"class":326},[320,650,351],{"class":326},[320,652,330],{"class":326},[320,654,621],{"class":410},[320,656,337],{"class":326},[320,658,340],{"class":326},[320,660,661],{"class":410}," 18",[320,663,664],{"class":326}," }]",[320,666,667],{"class":326}," },\n",[320,669,671,673,676,678,680],{"class":322,"line":670},3,[320,672,577],{"class":326},[320,674,675],{"class":333},"small",[320,677,337],{"class":326},[320,679,340],{"class":326},[320,681,682],{"class":326}," {\n",[320,684,686,689,691,693,695,697,700,702],{"class":322,"line":685},4,[320,687,688],{"class":326},"    \"",[320,690,334],{"class":385},[320,692,337],{"class":326},[320,694,340],{"class":326},[320,696,330],{"class":326},[320,698,699],{"class":345},"vstack",[320,701,337],{"class":326},[320,703,704],{"class":326},",\n",[320,706,708,710,712,714,716],{"class":322,"line":707},5,[320,709,688],{"class":326},[320,711,290],{"class":385},[320,713,337],{"class":326},[320,715,340],{"class":326},[320,717,718],{"class":326}," [\n",[320,720,722,725,727,729,731,733,735,737,739,741,743,746,748,750,752,755,757,759,761,764,766,768,770,773,775,777,779,782,784,786,789],{"class":322,"line":721},6,[320,723,724],{"class":326},"      {",[320,726,330],{"class":326},[320,728,334],{"class":410},[320,730,337],{"class":326},[320,732,340],{"class":326},[320,734,330],{"class":326},[320,736,552],{"class":345},[320,738,337],{"class":326},[320,740,351],{"class":326},[320,742,330],{"class":326},[320,744,745],{"class":410},"each",[320,747,337],{"class":326},[320,749,340],{"class":326},[320,751,330],{"class":326},[320,753,754],{"class":345},"data.days",[320,756,337],{"class":326},[320,758,351],{"class":326},[320,760,330],{"class":326},[320,762,763],{"class":410},"as",[320,765,337],{"class":326},[320,767,340],{"class":326},[320,769,330],{"class":326},[320,771,772],{"class":345},"day",[320,774,337],{"class":326},[320,776,351],{"class":326},[320,778,330],{"class":326},[320,780,781],{"class":410},"limit",[320,783,337],{"class":326},[320,785,340],{"class":326},[320,787,788],{"class":410}," 5",[320,790,704],{"class":326},[320,792,794,797,799,801,803,805,807,810,812,814,816,818,820,822,824,826,828,830,832,835,837,839],{"class":322,"line":793},7,[320,795,796],{"class":326},"        \"",[320,798,560],{"class":410},[320,800,337],{"class":326},[320,802,340],{"class":326},[320,804,380],{"class":326},[320,806,330],{"class":326},[320,808,334],{"class":809},"swJcz",[320,811,337],{"class":326},[320,813,340],{"class":326},[320,815,330],{"class":326},[320,817,346],{"class":345},[320,819,337],{"class":326},[320,821,351],{"class":326},[320,823,330],{"class":326},[320,825,356],{"class":809},[320,827,337],{"class":326},[320,829,340],{"class":326},[320,831,330],{"class":326},[320,833,834],{"class":345},"{{index}}. {{day.d}} {{day.hi}}°",[320,836,337],{"class":326},[320,838,414],{"class":326},[320,840,417],{"class":326},[320,842,844],{"class":322,"line":843},8,[320,845,846],{"class":326},"    ]\n",[320,848,850],{"class":322,"line":849},9,[320,851,852],{"class":326},"  }\n",[320,854,856],{"class":322,"line":855},10,[320,857,858],{"class":326},"}\n",[258,860,861,863,864,867,868,871,872,874,875,878,879,882,883,885,886,888],{},[262,862,763],{}," names the loop variable (default ",[262,865,866],{},"item","); ",[262,869,870],{},"{{index}}"," counts from 0. At most 50 copies;\n",[262,873,781],{}," lowers that. A path that is not an array renders nothing. A loop variable hides a\nbuilt-in root of the same name (",[262,876,877],{},"as: \"t\""," hides ",[262,880,881],{},"{{t.…}}"," inside the template). A ",[262,884,552],{},"\nused as a family root is wrapped in a ",[262,887,699],{},".",[275,890,892,893,299,896,282],{"id":891},"reusable-parts-templates-use","Reusable parts (",[262,894,895],{},"templates",[262,897,898],{},"use",[311,900,902],{"className":313,"code":901,"language":315,"meta":316,"style":316},"{\n  \"templates\": {\n    \"row\": { \"type\": \"label\", \"systemName\": \"{{arg.icon}}\", \"text\": \"{{arg.text}}\" }\n  },\n  \"small\": {\n    \"type\": \"vstack\",\n    \"children\": [\n      { \"type\": \"use\", \"template\": \"row\", \"args\": { \"icon\": \"sun.max\", \"text\": \"{{data.temp}}°\" } },\n      { \"type\": \"use\", \"template\": \"row\", \"args\": { \"icon\": \"drop\", \"text\": \"{{data.hum}}%\" }, \"color\": \"#60a5fa\" }\n    ]\n  }\n}\n",[262,903,904,908,920,985,990,1002,1020,1032,1116,1214,1218,1223],{"__ignoreMap":316},[320,905,906],{"class":322,"line":323},[320,907,571],{"class":326},[320,909,910,912,914,916,918],{"class":322,"line":574},[320,911,577],{"class":326},[320,913,895],{"class":333},[320,915,337],{"class":326},[320,917,340],{"class":326},[320,919,682],{"class":326},[320,921,922,924,927,929,931,933,935,937,939,941,943,946,948,950,952,955,957,959,961,964,966,968,970,972,974,976,978,981,983],{"class":322,"line":670},[320,923,688],{"class":326},[320,925,926],{"class":385},"row",[320,928,337],{"class":326},[320,930,340],{"class":326},[320,932,380],{"class":326},[320,934,330],{"class":326},[320,936,334],{"class":410},[320,938,337],{"class":326},[320,940,340],{"class":326},[320,942,330],{"class":326},[320,944,945],{"class":345},"label",[320,947,337],{"class":326},[320,949,351],{"class":326},[320,951,330],{"class":326},[320,953,954],{"class":410},"systemName",[320,956,337],{"class":326},[320,958,340],{"class":326},[320,960,330],{"class":326},[320,962,963],{"class":345},"{{arg.icon}}",[320,965,337],{"class":326},[320,967,351],{"class":326},[320,969,330],{"class":326},[320,971,346],{"class":410},[320,973,337],{"class":326},[320,975,340],{"class":326},[320,977,330],{"class":326},[320,979,980],{"class":345},"{{arg.text}}",[320,982,337],{"class":326},[320,984,417],{"class":326},[320,986,987],{"class":322,"line":685},[320,988,989],{"class":326},"  },\n",[320,991,992,994,996,998,1000],{"class":322,"line":707},[320,993,577],{"class":326},[320,995,675],{"class":333},[320,997,337],{"class":326},[320,999,340],{"class":326},[320,1001,682],{"class":326},[320,1003,1004,1006,1008,1010,1012,1014,1016,1018],{"class":322,"line":721},[320,1005,688],{"class":326},[320,1007,334],{"class":385},[320,1009,337],{"class":326},[320,1011,340],{"class":326},[320,1013,330],{"class":326},[320,1015,699],{"class":345},[320,1017,337],{"class":326},[320,1019,704],{"class":326},[320,1021,1022,1024,1026,1028,1030],{"class":322,"line":793},[320,1023,688],{"class":326},[320,1025,290],{"class":385},[320,1027,337],{"class":326},[320,1029,340],{"class":326},[320,1031,718],{"class":326},[320,1033,1034,1036,1038,1040,1042,1044,1046,1048,1050,1052,1054,1056,1058,1060,1062,1064,1066,1068,1070,1073,1075,1077,1079,1081,1084,1086,1088,1090,1093,1095,1097,1099,1101,1103,1105,1107,1110,1112,1114],{"class":322,"line":843},[320,1035,724],{"class":326},[320,1037,330],{"class":326},[320,1039,334],{"class":410},[320,1041,337],{"class":326},[320,1043,340],{"class":326},[320,1045,330],{"class":326},[320,1047,898],{"class":345},[320,1049,337],{"class":326},[320,1051,351],{"class":326},[320,1053,330],{"class":326},[320,1055,560],{"class":410},[320,1057,337],{"class":326},[320,1059,340],{"class":326},[320,1061,330],{"class":326},[320,1063,926],{"class":345},[320,1065,337],{"class":326},[320,1067,351],{"class":326},[320,1069,330],{"class":326},[320,1071,1072],{"class":410},"args",[320,1074,337],{"class":326},[320,1076,340],{"class":326},[320,1078,380],{"class":326},[320,1080,330],{"class":326},[320,1082,1083],{"class":809},"icon",[320,1085,337],{"class":326},[320,1087,340],{"class":326},[320,1089,330],{"class":326},[320,1091,1092],{"class":345},"sun.max",[320,1094,337],{"class":326},[320,1096,351],{"class":326},[320,1098,330],{"class":326},[320,1100,346],{"class":809},[320,1102,337],{"class":326},[320,1104,340],{"class":326},[320,1106,330],{"class":326},[320,1108,1109],{"class":345},"{{data.temp}}°",[320,1111,337],{"class":326},[320,1113,414],{"class":326},[320,1115,667],{"class":326},[320,1117,1118,1120,1122,1124,1126,1128,1130,1132,1134,1136,1138,1140,1142,1144,1146,1148,1150,1152,1154,1156,1158,1160,1162,1164,1166,1168,1170,1172,1175,1177,1179,1181,1183,1185,1187,1189,1192,1194,1196,1198,1201,1203,1205,1207,1210,1212],{"class":322,"line":849},[320,1119,724],{"class":326},[320,1121,330],{"class":326},[320,1123,334],{"class":410},[320,1125,337],{"class":326},[320,1127,340],{"class":326},[320,1129,330],{"class":326},[320,1131,898],{"class":345},[320,1133,337],{"class":326},[320,1135,351],{"class":326},[320,1137,330],{"class":326},[320,1139,560],{"class":410},[320,1141,337],{"class":326},[320,1143,340],{"class":326},[320,1145,330],{"class":326},[320,1147,926],{"class":345},[320,1149,337],{"class":326},[320,1151,351],{"class":326},[320,1153,330],{"class":326},[320,1155,1072],{"class":410},[320,1157,337],{"class":326},[320,1159,340],{"class":326},[320,1161,380],{"class":326},[320,1163,330],{"class":326},[320,1165,1083],{"class":809},[320,1167,337],{"class":326},[320,1169,340],{"class":326},[320,1171,330],{"class":326},[320,1173,1174],{"class":345},"drop",[320,1176,337],{"class":326},[320,1178,351],{"class":326},[320,1180,330],{"class":326},[320,1182,346],{"class":809},[320,1184,337],{"class":326},[320,1186,340],{"class":326},[320,1188,330],{"class":326},[320,1190,1191],{"class":345},"{{data.hum}}%",[320,1193,337],{"class":326},[320,1195,631],{"class":326},[320,1197,330],{"class":326},[320,1199,1200],{"class":410},"color",[320,1202,337],{"class":326},[320,1204,340],{"class":326},[320,1206,330],{"class":326},[320,1208,1209],{"class":345},"#60a5fa",[320,1211,337],{"class":326},[320,1213,417],{"class":326},[320,1215,1216],{"class":322,"line":855},[320,1217,846],{"class":326},[320,1219,1221],{"class":322,"line":1220},11,[320,1222,852],{"class":326},[320,1224,1226],{"class":322,"line":1225},12,[320,1227,858],{"class":326},[258,1229,1230,1231,1234,1235,1238,1239,1242,1243,1245,1246,1248,1249,299,1251,1254],{},"Arguments are read as ",[262,1232,1233],{},"{{arg.name}}"," (or with ",[262,1236,1237],{},"bind","). An argument that is exactly one\nplaceholder, such as ",[262,1240,1241],{},"\"{{data.days}}\"",", keeps its JSON type, so a template can ",[262,1244,552],{}," over\nit. Other keys on the ",[262,1247,898],{}," element (",[262,1250,1200],{},[262,1252,1253],{},"padding",", …) override the template's root.\nAn unknown template renders nothing; templates nest up to 8 levels.",[275,1256,1258,1259,282],{"id":1257},"localized-strings-strings","Localized strings (",[262,1260,1261],{},"strings",[258,1263,1264,1267,1268,299,1271,1274,1275,1278,1279,1282,1283,1286,1287,1290],{},[262,1265,1266],{},"{{t.key}}"," in any string takes the value from the table for the device locale: exact tag\n(",[262,1269,1270],{},"pt-BR",[262,1272,1273],{},"pt_BR"," too; script and extension subtags are ignored, so ",[262,1276,1277],{},"zh-Hant-TW-u-…"," matches\n",[262,1280,1281],{},"zh-TW","), then the same language, then ",[262,1284,1285],{},"defaultLocale",", then ",[262,1288,1289],{},"en",", then the\nfirst table. A key missing there falls back to the default table, then shows the key.",[311,1292,1294],{"className":313,"code":1293,"language":315,"meta":316,"style":316},"{\n  \"defaultLocale\": \"en\",\n  \"strings\": {\n    \"en\": { \"title\": \"Weather\", \"humidity\": \"Humidity\" },\n    \"ru\": { \"title\": \"Погода\", \"humidity\": \"Влажность\" }\n  },\n  \"small\": { \"type\": \"text\", \"content\": \"{{t.title}}\" }\n}\n",[262,1295,1296,1300,1318,1330,1378,1425,1429,1474],{"__ignoreMap":316},[320,1297,1298],{"class":322,"line":323},[320,1299,571],{"class":326},[320,1301,1302,1304,1306,1308,1310,1312,1314,1316],{"class":322,"line":574},[320,1303,577],{"class":326},[320,1305,1285],{"class":333},[320,1307,337],{"class":326},[320,1309,340],{"class":326},[320,1311,330],{"class":326},[320,1313,1289],{"class":345},[320,1315,337],{"class":326},[320,1317,704],{"class":326},[320,1319,1320,1322,1324,1326,1328],{"class":322,"line":670},[320,1321,577],{"class":326},[320,1323,1261],{"class":333},[320,1325,337],{"class":326},[320,1327,340],{"class":326},[320,1329,682],{"class":326},[320,1331,1332,1334,1336,1338,1340,1342,1344,1347,1349,1351,1353,1356,1358,1360,1362,1365,1367,1369,1371,1374,1376],{"class":322,"line":685},[320,1333,688],{"class":326},[320,1335,1289],{"class":385},[320,1337,337],{"class":326},[320,1339,340],{"class":326},[320,1341,380],{"class":326},[320,1343,330],{"class":326},[320,1345,1346],{"class":410},"title",[320,1348,337],{"class":326},[320,1350,340],{"class":326},[320,1352,330],{"class":326},[320,1354,1355],{"class":345},"Weather",[320,1357,337],{"class":326},[320,1359,351],{"class":326},[320,1361,330],{"class":326},[320,1363,1364],{"class":410},"humidity",[320,1366,337],{"class":326},[320,1368,340],{"class":326},[320,1370,330],{"class":326},[320,1372,1373],{"class":345},"Humidity",[320,1375,337],{"class":326},[320,1377,667],{"class":326},[320,1379,1380,1382,1385,1387,1389,1391,1393,1395,1397,1399,1401,1404,1406,1408,1410,1412,1414,1416,1418,1421,1423],{"class":322,"line":707},[320,1381,688],{"class":326},[320,1383,1384],{"class":385},"ru",[320,1386,337],{"class":326},[320,1388,340],{"class":326},[320,1390,380],{"class":326},[320,1392,330],{"class":326},[320,1394,1346],{"class":410},[320,1396,337],{"class":326},[320,1398,340],{"class":326},[320,1400,330],{"class":326},[320,1402,1403],{"class":345},"Погода",[320,1405,337],{"class":326},[320,1407,351],{"class":326},[320,1409,330],{"class":326},[320,1411,1364],{"class":410},[320,1413,337],{"class":326},[320,1415,340],{"class":326},[320,1417,330],{"class":326},[320,1419,1420],{"class":345},"Влажность",[320,1422,337],{"class":326},[320,1424,417],{"class":326},[320,1426,1427],{"class":322,"line":721},[320,1428,989],{"class":326},[320,1430,1431,1433,1435,1437,1439,1441,1443,1445,1447,1449,1451,1453,1455,1457,1459,1461,1463,1465,1467,1470,1472],{"class":322,"line":793},[320,1432,577],{"class":326},[320,1434,675],{"class":333},[320,1436,337],{"class":326},[320,1438,340],{"class":326},[320,1440,380],{"class":326},[320,1442,330],{"class":326},[320,1444,334],{"class":385},[320,1446,337],{"class":326},[320,1448,340],{"class":326},[320,1450,330],{"class":326},[320,1452,346],{"class":345},[320,1454,337],{"class":326},[320,1456,351],{"class":326},[320,1458,330],{"class":326},[320,1460,356],{"class":385},[320,1462,337],{"class":326},[320,1464,340],{"class":326},[320,1466,330],{"class":326},[320,1468,1469],{"class":345},"{{t.title}}",[320,1471,337],{"class":326},[320,1473,417],{"class":326},[320,1475,1476],{"class":322,"line":843},[320,1477,858],{"class":326},[258,1479,1480,1483,1484,445,1487,445,1490,1493,1494,1496],{},[262,1481,1482],{},"{{locale}}"," is the device locale itself. On the Windows Widgets Board the host reads it from\n",[262,1485,1486],{},"LC_ALL",[262,1488,1489],{},"LC_MESSAGES",[262,1491,1492],{},"LANG",", which are often unset there — then the ",[262,1495,1285],{},"\ntable is used.",[275,1498,1500,1501,282],{"id":1499},"newer-configs-on-older-apps-requires","Newer configs on older apps (",[262,1502,1503],{},"requires",[258,1505,1506,1507,445,1510,445,1513,1516,1517,1520],{},"Renderers understand contract version 3 (everything on this page; version 2 had no\n",[262,1508,1509],{},"state",[262,1511,1512],{},"set",[262,1514,1515],{},"transition","). A config that needs a\nnewer one says so, and an older app shows ",[262,1518,1519],{},"fallback"," instead of a half-understood layout:",[311,1522,1524],{"className":313,"code":1523,"language":315,"meta":316,"style":316},"{\n  \"requires\": { \"resolve\": 3 },\n  \"fallback\": { \"small\": { \"type\": \"text\", \"content\": \"Update the app\" } },\n  \"small\": { \"…\": \"uses a future feature\" }\n}\n",[262,1525,1526,1530,1556,1613,1643],{"__ignoreMap":316},[320,1527,1528],{"class":322,"line":323},[320,1529,571],{"class":326},[320,1531,1532,1534,1536,1538,1540,1542,1544,1547,1549,1551,1554],{"class":322,"line":574},[320,1533,577],{"class":326},[320,1535,1503],{"class":333},[320,1537,337],{"class":326},[320,1539,340],{"class":326},[320,1541,380],{"class":326},[320,1543,330],{"class":326},[320,1545,1546],{"class":385},"resolve",[320,1548,337],{"class":326},[320,1550,340],{"class":326},[320,1552,1553],{"class":410}," 3",[320,1555,667],{"class":326},[320,1557,1558,1560,1562,1564,1566,1568,1570,1572,1574,1576,1578,1580,1582,1584,1586,1588,1590,1592,1594,1596,1598,1600,1602,1604,1607,1609,1611],{"class":322,"line":670},[320,1559,577],{"class":326},[320,1561,1519],{"class":333},[320,1563,337],{"class":326},[320,1565,340],{"class":326},[320,1567,380],{"class":326},[320,1569,330],{"class":326},[320,1571,675],{"class":385},[320,1573,337],{"class":326},[320,1575,340],{"class":326},[320,1577,380],{"class":326},[320,1579,330],{"class":326},[320,1581,334],{"class":410},[320,1583,337],{"class":326},[320,1585,340],{"class":326},[320,1587,330],{"class":326},[320,1589,346],{"class":345},[320,1591,337],{"class":326},[320,1593,351],{"class":326},[320,1595,330],{"class":326},[320,1597,356],{"class":410},[320,1599,337],{"class":326},[320,1601,340],{"class":326},[320,1603,330],{"class":326},[320,1605,1606],{"class":345},"Update the app",[320,1608,337],{"class":326},[320,1610,414],{"class":326},[320,1612,667],{"class":326},[320,1614,1615,1617,1619,1621,1623,1625,1627,1630,1632,1634,1636,1639,1641],{"class":322,"line":685},[320,1616,577],{"class":326},[320,1618,675],{"class":333},[320,1620,337],{"class":326},[320,1622,340],{"class":326},[320,1624,380],{"class":326},[320,1626,330],{"class":326},[320,1628,1629],{"class":385},"…",[320,1631,337],{"class":326},[320,1633,340],{"class":326},[320,1635,330],{"class":326},[320,1637,1638],{"class":345},"uses a future feature",[320,1640,337],{"class":326},[320,1642,417],{"class":326},[320,1644,1645],{"class":322,"line":707},[320,1646,858],{"class":326},[258,1648,1649,1650,1652,1653,1655,1656,1658],{},"Without ",[262,1651,1519],{}," the widget shows \"Update the app to show this widget\". ",[262,1654,1261],{}," and\n",[262,1657,1285],{}," still apply to the fallback.",[1660,1661,1662],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}",{"title":316,"searchDepth":574,"depth":670,"links":1664},[1665,1667,1669,1671,1673],{"id":277,"depth":574,"text":1666},"Conditions (when)",{"id":548,"depth":574,"text":1668},"Lists from data (repeat)",{"id":891,"depth":574,"text":1670},"Reusable parts (templates, use)",{"id":1257,"depth":574,"text":1672},"Localized strings (strings)",{"id":1499,"depth":574,"text":1674},"Newer configs on older apps (requires)","Show parts only when data matches, build lists from arrays, reuse parts, localize text.","md",null,{},true,{"title":163,"description":1675},"1Uen-PDwtlKvpIDVnDVfLCYj8MNQyJh0QI2nDX4SpjE",[1683,1685],{"title":159,"path":160,"stem":161,"description":1684,"children":-1},"[object Object]",{"title":167,"path":168,"stem":169,"description":1686,"children":-1},"SF Symbols, inline base64 and URLs, clipped and sized the same on every platform.",1794660590604]