यहीं चल रहा है
TeaVM ने इसे JavaScript में संकलित किया — यह वही कोड है, उसका वीडियो नहीं।
Any Component becomes a container with setLayout. The same three labels, three ways.
Flip the switch. The token line follows the theme; the hardcoded one does not, and turns unreadable — no rebuild involved.
Shape, radius, padding and typeface all come from the skin. Nothing below knows which one is in force.
BottomSheet already gives you the header, the grabber, the close button and a footer that floats over the scroll. You only fill body().
A card answers "what is this one?"; a row answers "how do these compare?". Which one the reader needs changes during the day, so Listing lets them switch.
ListViewWindow does single and multi selection, with the title, the confirm and the tap-to-choose already wired.
DatePicker answers "which day". This answers "between which two", which has its own rules — and its own ways of being wrong.
The first row has no up arrow and the last has no down arrow — hidden, not removed, so the column does not jitter as rows move.
Tag anything a test must reach. Text breaks on rewording, class breaks on a second instance, index breaks on insertion — a tag breaks only when someone removes it.
setMode does most of the work: it picks the keyboard, the mask and the validation together. A regex on the way out only tells the user they already got it wrong.
Interrupt in proportion to what you need back. A confirmation on something reversible teaches people to dismiss confirmations — including the one that mattered.
One flag — tabsAtBottom — and the strip is a bottom bar on a phone and a rail on a tablet. Resize the window to see it happen.
Known length gets a bar. Unknown gets a spinner. A finished measurement — a share, a score — gets a ring, and that one is not waiting at all.
Tell CardGrid the width a card wants, not how many columns to use. Resize the window — the reflow is the framework's, not yours.
header() scrolls away, pinned() never does. Put the identity in the first and the control the reader needs at row 200 in the second.
autoThemeColors themes the axes, grid and background — but NOT the series. A series left at colour 0 falls back to a library grey, and becomes the one thing on screen ignoring your brand.
createView is rare, bindView is constant. Anything slow in bindView — a query, a request, an allocation — is felt directly as stutter while scrolling.
Add a few notes and reopen the recipe — they are still there. The same code runs on desktop, Android, iOS and the web.
White pad, not the theme surface: the image is captured to be printed. Under dark mode a themed pad captures white ink on navy, which is unusable downstream.
show(answer -> …) on all of them, and answer is null when the user backed out. The ones needing hardware live in R21, and the system file picker in R31 — those can be refused.
Ask whether the device HAS it before offering it. PlatformUtils.isSupported answers per capability, at runtime — never a check on which platform this is.
Styles.animationDuration is the house value — match it, so the app moves at one speed. Anything the user waits through twice was too long the first time.
A component is a rectangle that can draw. width/height are yours, getAutoHeight says how much room you want, and onPaint puts something in it.
It floats over the content, so leave room at the bottom of the list — bottomInset is what stops it covering the last row nobody can then scroll past.
OSM needs no API key, so a map works the moment you write it. Opens in a window of its own — a native view inside a scrolling page floats over everything around it.
Decode once, keep the Image, reuse it. Loading inside onPaint or inside a list's bind step is what makes scrolling stutter where the pictures are.
Tab follows the order you ADDED the fields, not where they ended up on screen. Build in reading order and the tab order is correct without being designed.
Search dev/crossfly/ui first — most of what you are about to write is already there. When it genuinely is not, this is the shape.
One seed generates the whole palette, for both themes. Nothing below names a colour, which is why the switch needs no rebuild.
Three of these are usually left to render as blank space. Blank space reads as a bug, never as an answer.
Ask the capability, not the platform. Phones, Windows 10+ and the Mac have the picker and the share sheet; Linux has no share sheet; a browser has the picker always and the sheet only sometimes. Printing takes a PDF, and every platform's own dialog does the rest.
A native surface over the canvas, like the map. Ask the capability first: all five platforms have it now, and one that does not says so instead of showing black.
A native browser over the canvas, at this component's rect. On the web it is an <iframe>, and script only reaches a page from your own origin.
Show a strip, read the strip. The viewfinder is only as tall as the digits, and the recognizer gets that band and nothing else — so the speedometer and the trip meter around it never compete with the number.
One shell, three listings over a local database, a detail and a long form. A thing you navigate away from is a Window; a thing you switch between is not.
One screen, read rather than operated: a headline number, a KPI grid and charts, all re-fed by the single control that changes the period.
Every capture has three states, not two: empty, captured, and unavailable on this device — and the third is the one a phone-only developer never sees.
A linear flow that validates per step, lets the reader walk back freely, and ends on a review built from the same data the steps collected.
इन फ़िल्टरों से कुछ मेल नहीं खाता।
इस पृष्ठ के मशीन-पठनीय रूप, ताकि मॉडल API का अनुमान लगाने के बजाय उदाहरण पढ़ सके।