Results for “k”
Small, practical examples. Search by task or narrow things down below.
Disable an unavailable action
Disable an unavailable action with a small React component and explicit browser behavior.
React✓ Tested
Disable animations for a reduced-motion mode
jQuery: The global fx.off switch causes effects to finish immediately.
jQuery✓ Tested
Dispatch a command through function pointers
Arduino / C: A small function table can map validated command indices to actions.
Arduino / C✓ Tested
Dispatch a command with case
Choose an action from a small set of supported commands.
case✓ Tested
Dispatch a one-character serial command
Arduino / C: A switch provides explicit handling for accepted and unknown commands.
Arduino / C✓ Tested
Display a bounded slice of a list
Display a bounded slice of a list with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Display a component field with interpolation
Display a component field with interpolation with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Display a JavaScript value in JSX
Display a JavaScript value in JSX with a small React component and explicit browser behavior.
React✓ Tested
Display a slice of paginated data
Display a slice of paginated data with a small React component and explicit browser behavior.
React✓ Tested
Display a specific reactive validation error
Display a specific reactive validation error with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Display an instant at a fixed offset
Display an instant at a fixed offset using a complete Go program with explicit sample inputs.
Go✓ Tested
Display code as text
Escape angle brackets in preformatted HTML code samples.
HTML✓ Tested