Changelog
Source:NEWS.md
hovercraft 0.0.90
tip_on()puts a tip on an HTML tag: plain text, or a named template filled from a record.tip_define()andtip_template()build and name templates, withtip_title(),tip_text(),tip_badge(),tip_fields()andtip_code()for the blocks. Placeholders are checked when the template is made.tip_on()looks inside the tag for something that can take keyboard focus before it warns, so thedivShiny puts around an input no longer gets a warning (#32).tip_on()gives an icon-only button, with noaria-labelof its own, the words of a plain-text tip as itsaria-label, so a screen reader has a name to read (#32). Engine 0.49.0 reads that name once: a tip that says the same as the tag’s name is no longer also given as its description (#38).tip_badge()takesstatus("success","warning","danger"or"info"; any other word is an error) in place oftone. The badge is coloured from the page’s Bootstrap colours by a few lines of CSS that come with the engine’s dependency (#32).tip_table()is an experimental spike that puts tips on the rows, cells and header cells of aDT::datatable()orreactable::reactable()table, drawn from each row’s own values and following the data row through sorting, filtering and paging. Its shape may change (#36). Itsidis a Shiny id, the same astip_on()’s will be: one string with no whitespace, sons()ids work, and every marked row, cell and header cell gets its own tip id derived from it (#41). The engine’s kind of the tips is fixed (table_row,table_cell,table_header) and no longer set byid.tip_table()tips now show for the keyboard: the table gets one tab stop and the arrow keys, Home and End move between the rows, cells and header cells that have a tip (#39). The tips of areactable::reactable()table are now described to screen readers, and a description no longer stays behind with the old row whenreactablereuses its rows after a sort or a page change (#39). The help page lists what was checked in a browser (DTwithscrollX,scrollY,fixedHeader,colReorder,responsiveand server mode;reactablewith selection,groupByanddetails), and what is not supported (#39).tip_spec()(experimental) gives onetip_table()target its own settings, for now aplacement: asrows, or as an entry of the named list given tocellsorheaders. A setting left asNULLis taken fromtip_table(); a cell follows the table’s placement, not its row’s (#41).use_hovercraft()gives the tip engine’s script and CSS as an HTML dependency.tip_theme()anduse_hovercraft(style = )set how the tips look: roles for light and dark (fill, words, border, code background, corner, shadow, typeface), abslib::bs_theme(), or CSS variables (throughtip_style(theme = )). The tip followsdata-bs-theme, so it turns dark withbslib::input_dark_mode(). Words below 4.5:1 on their fill give ahovercraft_contrastwarning.The tip is now a shade of its page (Bootstrap’s tertiary background with the page’s text colour, in light and in dark), no longer the page inverted. A
bslib::bs_theme()given touse_hovercraft(style = )is read the same way, and the contrast check measures a role you leave out against that default. The bundled engine shipstip.jsonand its five preset files.tip_style()bundles a preset, a theme and a class for the tip box, andtip_presets()lists the presets (tip_presets()and a preset name asstyleare stable;tip_style()is experimental).tip_on()anduse_hovercraft()take it asstyle =, which also takes a preset name,"none", or one part of a style: atip_theme()or abslib::bs_theme(). A tag’s style beats the page’s, and a value set nearer wins, value by value. A bare list, or a string with:or;such as"color: red", stops with an error that says whatstyletakes (#34, #42).use_hovercraft(theme = )is nowuse_hovercraft(style = ), with no old argument kept (#42).A page’s theme is written on
bodyand no longer on:root, so a page preset no longer overwrites it; the page’s preset and class are written on the page as the engine’s own attributes (#42).tip_on(marker = )(experimental) draws a visible cue on a tipped tag, off by default (NULLor"none"):"underline","icon","corner", a bare tag as a custom icon, or atip_marker().tip_marker(type, ..., line, icon)(experimental) chooses the line of an underline ("dotted","dashed"or"wavy", a long gentle wave in the text’s own colour; left out, it follows the tip preset) or gives an icon, added as a hidden child. The markers are drawn by their own small CSS file, attached only when a marker is used. The pointer over a marked tag is the help cursor (a hand when the tip can be pinned), and a marker is in the tag’s text colour so it keeps its contrast in light and dark.tip_table(marker = )andtip_spec(marker = )(experimental) draw a small corner triangle on the cells and header cells that have a tip, inDTandreactabletables, off by default. Atip_spec()marker beats the table’s, and"none"takes it off one column. A row takes no marker, and"underline","icon"and an icon of your own stop with an error for now. The triangle is a background, so it takes no room and leaves the sort arrows of aDTtable alone (#48).tip_table(style = )andtip_spec(style = )(experimental) give the tips of a table their look: a preset name, atip_style(), atip_theme()or abslib::bs_theme(), astip_on(style = )takes. The style of atip_spec()beats the table’s part by part, and a row’s own style also reaches its cells that have none of their own (#50).tip_on(placement = )chooses the side a tip opens on ("auto","top","bottom","left"or"right"); left out, it is the page’s choice,"auto"unless a tagged ancestor sets a side.tip_on(id = )gives the tip a Shiny id, written withns()in a module’s UI (tip_table(id = )takes the plain id and adds the prefix itself); it names the tip fortip_show(),tip_hide(),tip_update()and the hint input (#21, #50, #56).The bundled tip engine is now 0.50.0. It adds a hint event, calls to show, hide, pin and close a tip, short and long forms of a tip, motion and size settings, and a tip for a natively disabled control with a reason; the calls to show and hide a tip, the hint, pin and copy events, the pin and the reason of a disabled control have an R side (#52, #56, #8, #13, #14).
tip_style()(experimental) gainsmotion("fade","slide"or"none"),gap,max_widthandpin_width, checked against the ranges in the tip engine’s contract and written on the page or on one tag like a theme; the nearest value wins, value by value, and a reader’s reduced-motion setting always wins. There is nodelay: the engine reads it only from the file of a preset (#54).Two vignettes, “Get started with hovercraft” and “Themes and looks”, and four articles on the website: tips in a Shiny app, tips on tables, a short tip with a long form, and the book. The website’s reference is grouped by what you do, and the README is shorter and points to the guides (#188).
The tip has a small arrow pointing at its tag, on by default and drawn when its fill is opaque (#31).
tip_theme(font = )now sets the engine’s own tip font variable, so a theme’s font beats the font of a preset (#31).tip_template()stops with the “comes with a later version” error for a plain-listgrouporhostblock, or a block with the engine’s newparent,kickerormetafields, which have no R constructor yet;tip_template_fields()reads the title’s new placeholders (#31).The bundled tip engine is now 0.51.0. It marks an element while its tip is open and can anchor a tip on the element’s content (#58).
tip_table()anchors the tip of every cell and header cell on its text, so a right-aligned number or header no longer gets a tip pointing at empty space. A row’s tip still opens at the pointer. There is no argument for it (#58).A marked tag (
tip_on(marker = ),tip_table(marker = )) is highlighted while its tip is open: a soft tint on the words, the icon’s tag or the cell, a glow round abslib::value_box(). There is no argument for it (#58).tip_show(),tip_hide()andtip_update()(experimental) open, close and change a tip from a Shiny server function, by the tip’sid(theidgiven totip_on()or the tag’s own id), or, for atip_table()tip, by the table’sidwithrow =andcolumn =. They take the module’s namespace fromsession.tip_hide()closes a hint and never a pin.tip_update()rewritestext,template,record(which needs itstemplatein the same call) orplacement; an open tip draws its new words at once and a new placement is used the next time it opens (#56).tip_on(events = )(experimental) asks for a Shiny input:"hint"sendsinput$<id>_hint, a list ofstate,text,by,via,reason, each time the tip opens or closes. It is off unless asked for, since it sends a message on every hover."pin"and"copy"send the pin and the Copy press as well (#56, #14).The bundled tip engine is now 0.52.0. It adds a pin set by hand, a part mark, a class for the reason line and a
byandviaoption onpin();tip_on(pin = )uses the manual pin, the part mark andbyandviaonpin()(#62, #13).tip_on(when_disabled = )(experimental) gives a control that is switched off a reason: while it is disabled, its tip says “Not available:” and the reason, with a small lock before it, and when it is enabled again the reason goes and the control’s own tip shows as usual. It works for a control disabled when the page is built and for one switched off later by theupdate*(disabled = )functions of Shiny, by script or by a disabledfieldset, on a Bootstrap 5 page and on the Bootstrap 3 page of a plainfluidPage(). The control is put in a small wrapper that is a tab stop only while the control is disabled, since a disabled control takes no keyboard focus and, under Bootstrap 5, no pointer: a button’s wrapper has the role of a button and any other control’s is a group named by its label. Focus moves to the wrapper when a focused control is switched off, and back when it is switched on. The wrapper takes the control’s width and its place in a flex row; a control inside abtn-grouporinput-group, and a control disabled byaria-disabledalone, are not covered.tip_on()called again on the wrapper replaces the tip whole and keeps one wrapper when it is given a new reason (without one, the bare control comes back); a reason of blanks is an error, and amarkerwithout a tip of its own is left off with a warning (#8).tip_output(output, keep_alive = TRUE)(experimental) puts any Shiny output inside atip_template()— plots,DT,reactable,gtoruiOutput(). Withkeep_alive = TRUEclosing the tip parks the bound output in a hidden holder and refreshes its visibility when shown again;keep_alive = FALSEunbinds and destroys it on close. Works with ashinycssloadersloader without clashing (waiterandbonesare expected to work and are untested), shows loading, error with Retry and empty states, and keeps tip markup deterministic forshiny::bindCache(). Retry re-runs a render that readsinput$<output>_retry; otherwise the tip goes back to the error state. The help page shows how one output follows the open item of several (#63).tip_template()gains namedhead,bodyandfootslots, withfootseparated by a subtle divider;tip_define()accepts Shinyns()module-namespaced template names (and dynamic dots via!!ns("name") :=) so two copies of one module keep their own templates; andtip_badge(status = )accepts a placeholder such as"{{ status }}"filled from the record (#65).use_hovercraft(max_pins = , keys = )(experimental):max_pinskeeps up to 10 pinned tips open (the default, 1, is one at a time; at the limit the oldest closes), andkeysswitches the letter keys off,keys = FALSEfor all orkeys = c(pin = FALSE)for one (a key left out stays on; Escape always closes;moreis the M key oftip_more()). The number goes to the page in a dependency of its own, given only whenmax_pinsorkeysis written (evenmax_pins = 1), and a second, different number or key setting warns in the browser’s console and the first holds.tip_table(max_pins = )gives a table’s rows a count of their own, outside the app’s: a row pinned past it closes that table’s oldest pin and no other. It needsidand arowsspec that pins. All pins open together cannot pass the engine’s cap of 10, and on a viewport narrower than 600 pixels the engine keeps one pin at a time (a bottom sheet). A pin that a table’s own count closes reports as the engine’s limit does (reason "replaced"). A pinnedtip_output()finds its item by the tip’s id, so several pins can share one output. With several pins open, each pinned tip that has a long form has its own More / Less button, and the M key acts on the pinned tip that holds the focus (#98).tip_on()andtip_spec()gainmorefor a short tip and a long one.moretakes markdown words (with placeholders), atip_template()or atip_more();tip_more(on = "pin")without a tag that can pin and anidstops with a classed error. Pinning a short tip whose long form shows on a pin (tip_more(on = "pin")) smoothly grows the box into its long form while keeping its arrow, placement, theme and focus intact, and disables animation under reduced motion (#57).tip_table(rows = , cells = , headers = )takes atip_output()given by id and parks it from the table’s own script; one given as a tag stops with an error that says to put the tag in the UI. In a table,tip_spec(more = )holds the long form behind a “More” button, astip_on()does;tip_more(on = "pin")stops with an error anywhere but the spec forrowsof a table withpin = TRUE(#63, #57).tip_badge(status = )takes a placeholder only as the whole value:"pre {{ tone }}"stops with the status error instead of always drawing a plain badge (#57, #65).A pinned tip with a long form starts the long form with a hairline, as the hover form does (also when the “More” button opens it), and clips its box while it grows, so the long form no longer draws outside the box. The output a
moretemplate holds is put in the page’s body by the script, not written into the head (#57).tip_show(),tip_hide()andtip_update()(experimental) takerowandcolumnfor the tips of atip_table():rowalone is a row,rowandcolumna cell,columnalone a header cell.rowis the position of the row in the data the table has now;columnis a data column’s name or position (the row names of areactableare not one). A name that is not a column of a table already drawn is an error that lists the columns; a name given before the table’s first draw is read when the call is sent, and warns (classhovercraft_warning_table) and sends nothing if it is still not a column. Intip_update(),NULLnow leaves a value as it is,NAtakes it away and""clears thetext, andtip_update(id, text = NULL)alone is an error, since there is nothing to change. In the three calls,sessionnow comes after..., which must be empty. Every call is sent when the flush that follows it is done, and asks for that flush, sotip_show()in the same observer as therenderUI()that draws the tag reaches the new tag, and a call from alatercallback is sent too. No server call pins a tip or closes a pin (#114).tip_on()has rules a frozen API needs. A second call on a tag replaces the old tip whole,id,events,pinandwhen_disabledincluded, and warns once (classhovercraft_warning_retip) when the old tip had anid,eventsor a pin and the new call names none ofid,eventsandpin(pin = FALSEcounts as naming it).pin = "click"stops with an error on a control or a tag that holds one, and says to usepin = TRUE.events = "pin"or"copy"without a pin, a list of CSS variables in thestyleof one tag, and anything but one tag astagstop with an error (a tab’s title is the way out). A tag with atitleattribute keeps it and warns (classhovercraft_warning_title).templatetakes atip_template()as well as a name, andtextfills its{{ field }}placeholders whenrecordis given, so{{ }}in the text is live with a record and stays as written without one. A CSS-variable list in the style of atip_spec()or atip_table()is an error too (#112).tip_on(pin = )(stable, one pinned tip at a time) lets a reader keep a tip open.pin = TRUEdraws a small pin button in the top-right corner of the tip, on the same line as a one-sentence tip, and gives the keyboard a pin key,P, that the tagged item announces asaria-keyshortcutsand that works while the tagged item has the focus or the pointer rests on it (the item under the pointer wins when the focus is on another), never while the focus is in a field, and pins once when held down; a page switches it off for every reader withuse_hovercraft(keys = FALSE), there is no switch for one reader (#132); a click, a key or a tap on the item itself never pins, so a row that selects itself keeps selecting.pin = "click"is the engine’s classic pin, where a click on the item pins too. A pin needs anidand a tag that the engine can pin (not a link, a submit button or a field). The pinned tip keeps the engine’s own close button.tip_on(events = )now takes"pin"and"copy"as well as"hint":input$<id>_pinholdsstate,text,by,viaandreasonof a pin, andinput$<id>_copythefield,block,ok,byandviaof a Copy press, the same in modules and sent only when asked (#14).tip_code(copy = TRUE)is accepted: a code block in a pinned tip has a Copy button, which also works on a page that is not served over https (#13).use_hovercraft(),tip_define()and every tag that has a tip no longer write inline<script>or<style>: the start script, the Shiny layer and the badge colours are files of a newhovercraft-runtimedependency, their names and the templates a page defines are JSON data (a browser does not run it), and the CSS of a theme or a page’s style is data too, which the runtime script applies as a constructed style sheet (it comes after the page’s own style sheets in the cascade). Every dependency is a folder of the installed package, so a cached R Markdown chunk or a sharedbindCache()cache works in another R process. A page served withContent-Security-Policy: script-src 'self'; style-src 'self'now works; the help page ofuse_hovercraft()says what such a page still needs.use_hovercraft()returns a list, the engine, the page’s style when there is one, and the runtime.tip_on(when_disabled = )sets its wrapper’s width from script, not from astyleattribute (#73).The templates that
tip_define()has seen, whichtip_on()checks a record against, belong to the Shiny session that defined them; templates defined where the UI is built are known to every session. Two sessions of one app that define one name with different fields no longer overwrite each other’s checks;tip_update()checks against the templates of the session it is given (#74).tip_table()no longer adds a hidden column to aDTtable, soDT::replaceData()(which works in server mode, the only mode it supports) with the user’s own data frame works and the tips follow the new rows. The record of a row is read from the row’s own data in the browser, with the HTML escaping thatDTapplies to text undone, and with anidthe data row comes from the row index of theDTtable (client mode) or from the rows the server sent (server mode). The events and inputs of the table are as they are without tips, and aDTtable with a header of more than one row is no longer refused (#71).tip_table()tips on areactabletable followreactable::updateReactable(data = ): the class of each row holds the values its tips read, so it changes with the data. The page no longer carries each row’s record (#72).tip_spec(pin = , events = )for therowsoftip_table()(experimental) lets a reader pin a row’s tip, inDT(client and server mode) andreactable.pin = TRUEgives the rows the engine’s manual pin: the pin handle in the corner of the row’s tip and the pin keyPpin it, a click on the row still selects it, and the"click"pin oftip_on()stops with an error.events("hint","pin","copy") sends the table’s inputs (see the next entries), so both arguments need anidon the table. A pin stays on its row whenDTsorts and on the same row number when the table is drawn again or given new data, and closes when its row leaves the page. ADTpin closed that way reportsreason"gone"andby"data"; areactablepin, which the layer closes becausereactablereuses its row nodes, reportsreason"host"andby"host".tip_more(on = "pin")in the spec forrowsworks withpin = TRUE(#83).tip_update()on a control withwhen_disabledchanges the control’s own tip, as it does on any tag: while the control is disabled its tip still says only “Not available:” and the reason, and the newtext,templateandrecordshow once the control is enabled, where before the new words were shown beside the reason and then lost; a newplacementis used for the reason too. The help page oftip_update()says so (#85).tip_table()on areactabletable withfilterable = TRUEputs a header cell’s tip on the header cell only: the filter box under it no longer opens the header’s tip, and a screen reader no longer reads it twice.DT’s filter row was not affected. The help page lists filtering among what is checked (#86).hovercraft_book()(experimental) opens hovercraft book, a Shiny app that shows every feature of the package on one page, in six parts of numbered sections: for each one a live figure, a sentence of choices that change it, the R code that draws it (the same code, ready to copy), what to test, and the Shiny inputs the page sends. The index has a search box that finds a section by its title or by a function or argument it shows. The checklist (the key C) shows one test step at a time and ticks a step when the server receives the input that proves it.sectionopens the book at a section andchecklist = TRUEwith the checklist on. The book needs shiny and bslib; its table sections also needDTorreactable(#91, #99).The bundled tip engine is now 0.53.0. It can draw a pinned tip in place, inside a container the page owns (
pin(el, { into })); there is no R argument for it yet (#100).The bundled tip engine is now 0.55.0. It can keep several pinned tips open at once (a page opts in with an attribute on its root, up to 10) and
close(el)closes one chosen pin;use_hovercraft(max_pins = )sets it (#108).pinandeventsmove fromtip_table()totip_spec(), withNULLas the default:tip_table(rows = tip_spec("...", pin = TRUE, events = "pin"), id = "scores"). Given totip_table()they stop with an error that says where they went. A spec forcellsorheaderswith a pin or events stops with “only rows pin for now” or “only rows send events for now” (#113).A table sends one Shiny input per event, not one per row:
input$<id>_pin,_hintand_copy, named after the table’sid. Each value is the event (state,text,by,via,reason) with the tip’s address:target("row"),row(the 1-based data row, in client and server mode, after a sort too),column(the column’s name,NULLfor a row) andid.input$<id>_pinnedis a list of the addresses pinned now, oldest first, andinput$<id>_pinnedof atip_on()tag withevents = "pin"isTRUEorFALSE; it isNULLuntil the first pin event and arrives with_pin. The help lists the values ofreasonandby(#113).tip_table(id = )takes the plain id inside a Shiny module and adds the module’s prefix from the session the table is drawn in (also insideDT::renderDT()andreactable::renderReactable()), astip_show()does; an id that already has the prefix is left alone, and outside a session, such as a module’s UI function, the id is used as given: givens("id")there (#113).tip_table()stops with an error for a column named twice incellsorheaders, and for words that are exactly the name of a template made withtip_define()(a table takes atip_template()object). The page’s script warns once on the browser console about two tagged items with one tip id, and about two tables with one id (#113).The bundled tip engine is now 0.58.0. A page that marks its own controls again on every change no longer freezes with the engine’s descriptions on it; a hover tip that is drawn again while open keeps its side, grows away from its item, scrolls in a height cap instead of flipping and stays open when it shrinks under the pointer; a pin closes as
"gone"(by"data") when its item is removed or takes no room (hidden,display: noneon it or an ancestor, a closeddetails, a collapsed accordion panel). There is no new R argument (#121).tip_more()(experimental) is new, andmore_ongoes fromtip_on()andtip_spec(). By default the long form of a tip (more =, in a tag, a row, a cell or a header cell) waits behind a “More” button at the bottom of the short tip: it opens the long form in the same tip, “Less” closes it, theMkey does the same while the focus is on the item or the pointer rests on it (not in a text field; the item under the pointer wins when the focus is on another, and a pinned tip that holds the focus keeps the key; a page switches it off for every reader withuse_hovercraft(keys = FALSE)) (#132), and the tip is short again the next time it opens. No pin and noidare needed.tip_more(on = "hover")shows the long form at once andtip_more(on = "pin")when the tip is pinned (an error without a pin);label =sets the words of the buttons. A pinned tip has the buttons too (there the button is a tab stop after the tip’s own) and sendsinput$<id>_pinwithstate = "updated"when it grows; a hover tip that grows sends nothing; the help saysstatemay gain values. The tip keeps its place when it grows or shrinks because the engine (0.58.0) does (#115).tip_spec(to = "in_place")for therowsoftip_table()(experimental) draws a row’s pinned tip as a panel under the row, as wide as the table’s visible part, inDT(client and server mode, withscrollXtoo) andreactable; the hover tip still floats. It needspin = TRUEand the table’sid, and stops with an error that names what is missing;to = "float"orNULLis the floating pin, andto = "in_place"oncellsorheadersstops. The panel holds what any pinned tip holds (the long form with its “More” button, atip_output()), follows its row whenDTsorts, closes withreason"gone"when a filter or another page takes the row off the page, counts in the pin limit, and leaves the widget’s own inputs alone. A click away does not close it; its close button,Escape, the pin limit or its row going do. TheFixedColumnsextension ofDTstops with an error withto = "in_place". A server-modeDTthat Shiny draws again withrenderDT()closes the pin (reason"gone"), as it closes a floating pin; a client-mode table,DT::replaceData()andreactable::updateReactable(data = )keep it. The button of a “More” tip in a pinned tip follows the tip when its item is drawn again (#70).tip_more()(experimental) says how the long form of a tip opens. By default the long form of a tip (more =, in a tag, a row, a cell or a header cell) waits behind a “More” button at the bottom of the short tip: it opens the long form in the same tip, “Less” closes it, theMkey does the same while the focus is on the item or the pointer rests on it (not in a text field; the item under the pointer wins when the focus is on another, and a pinned tip that holds the focus keeps the key; a page switches it off for every reader withuse_hovercraft(keys = FALSE)) (#132), and the tip is short again the next time it opens. No pin and noidare needed.tip_more(on = "hover")shows the long form at once andtip_more(on = "pin")when the tip is pinned (an error without a pin);label =sets the words of the buttons. A pinned tip has the buttons too (there the button is a tab stop after the tip’s own) and sendsinput$<id>_pinwithstate = "updated"when it grows; a hover tip that grows sends nothing; the help saysstatemay gain values. The tip keeps its place when it grows or shrinks because the engine (0.58.0) does (#115).tip_more()(experimental) says how the long form of a tip opens. By default the long form of a tip (more =, in a tag, a row, a cell or a header cell) waits behind a “More” button at the bottom of the short tip: it opens the long form in the same tip, “Less” closes it, theMkey does the same while the focus is on the item (not in a text field), and the tip is short again the next time it opens. No pin and noidare needed.tip_more(on = "hover")shows the long form at once andtip_more(on = "pin")when the tip is pinned (an error without a pin);label =sets the words of the buttons. A pinned tip has the buttons too (there the button is a tab stop after the tip’s own) and sendsinput$<id>_pinwithstate = "updated"when it grows; a hover tip that grows sends nothing; the help saysstatemay gain values. The tip keeps its place when it grows or shrinks because the engine (0.58.0) does (#115).use_hovercraft(labels = )andtip_on(labels = )(experimental) change the words the page shows itself, such as “Copy”, “Close”, “More when pinned”, “Pin this tip” and “Less”, for a page in another language.labelsis a named character vector, such asc(close = "Dismiss"), checked against one list of keys: the tip engine’s own words plus the pin button’s name and the “Less” button. An unknown key stops with an error of classhovercraft_error_labelsthat lists the keys and guesses a misspelt one. A tag’s words apply to its tip and to every tip inside it, the nearest words win key by key, andtip_more(label = )still beatslabelsfor the buttons of one tip (#136, #55).tip_more(on = "click")andtip_more(pin = TRUE)(experimental) are new. Withon = "click"a click on the tagged item, while its tip is open, opens and closes the long form; the tip has no button, the M key does the same from the keyboard, and the click never pins. A control, or a tag that holds one (a button, an input, a link, a label …), is refused with the classhovercraft_error_more, as is any target oftip_table(), where a click selects a row. Withpin = TRUEthe More button and the M key pin the tip as well as open the long form, so it stays; Less only closes the long form. It needs a tip that can pin, ason = "pin"does (#133).tip_more(as = , where = )(experimental) choose the look and the side of the control that opens the long form.as = "link"draws an italic, underlined text link at the bottom of the tip, at its start, instead of the button in the corner;where = "start"or"end"puts either control on the side asked for, following the reading direction. The link is a real button styled as a link, so a keyboard and a screen reader meet the same control: a tab stop in a pinned tip, the M key,aria-keyshortcuts,aria-expandedand the words oflabelandlabelsall work as before. It works in a table’s in-place panel, andasandwhereare an error with a moment that has no control ("hover","pin","click") (#134).tip_on()keeps a tag’s ownaria-keyshortcutsand adds only hovercraft’s own key tokens (P,M) to it, once: a tag withAlt+Rends asAlt+R P, a tag tipped again never getsP P, and tipping it again without a pin takes onlyPaway (#150).tip_table()resets the text and placement thattip_update(row = )writes on a row’s node when the widget gives the node to another row, so a sorted or pagedreactabletable no longer shows one row’s new words on another (#150).tip_on(events = , pin = )checks the tag’s ownid(whitespace and a colon end a session) when it is the base of the inputs’ names, and names it in the error (#150).The engine-name clash warning (a record column named
tip_idortip_index) now fires for the long form, inline words and an inline template too (#150).tip_update(template = )also takes the tag’s plain text away when notextcomes with it, since plain text beats a template (#150).Status badges and the output error message follow the operating system’s dark mode on a page with no
data-bs-theme, and a tip’s own dark mode; the in-place panel of a table uses a logical inset for right-to-left pages (#150).tip_table()cells no longer show their row’s long form when it opens on hover (or warn when it opens on pin): a cell with no long form of its own is given an empty one (#170).tip_table()on aDT::datatable()defines the tips’ templates before the table draws its first row, so the console no longer warns that a template “is not defined” while the table renders (#168).The README has a section “What is public on the page”, linked from
?use_hovercraft: theHovercraftglobal, thehovercraft:*events, thedata-hovercraft-tip*attributes, thehc-*classes and the--hovercraft-tip-*variables are public; the helper scripts’ other names, their files, the dependency names and the<meta>tags are internal (#176).