MCPcopy Create free account

hub / github.com/davidpdrsn/axum-live-view / functions

Functions252 in github.com/davidpdrsn/axum-live-view

↓ 1 callersFunctionset_title
Change the `<title>`. # Example ``` axum_live_view::js_command::set_title("My page - (2 notifications)"); ```
axum-live-view/src/js_command.rs:145
↓ 1 callersFunctiont
()
assets-precompiled/axum_live_view.min.js:1
↓ 1 callersFunctionthrottle
(f: Fn<In>, delayMs: number)
assets/src/live_view.ts:853
↓ 1 callersFunctionts_precompile
(opt: TsPrecompile)
xtask/src/main.rs:103
↓ 1 callersMethodupdate
(mut self, msg: Msg, data: Option<EventData>)
axum-live-view/src/test.rs:255
↓ 1 callersMethodwith_all
Include an iterator of [`JsCommand`]s with this update. [`JsCommand`] can be used to perform updates that can't otherwise be done with [`LiveView::re
axum-live-view/src/live_view/mod.rs:169
Functionadd_class
Add a class to elements matching a CSS selector. # Example ``` axum_live_view::js_command::add_class(".thing", "hidden"); ```
axum-live-view/src/js_command.rs:86
Methodalt
(&self)
axum-live-view/src/event_data.rs:302
Methodas_bool
(&self)
axum-live-view/src/event_data.rs:255
Methodas_key
Get the inner [`Key`] if any.
axum-live-view/src/event_data.rs:64
Methodas_mouse
Get the inner [`Mouse`] if any.
axum-live-view/src/event_data.rs:73
Methodas_scroll
Get the inner [`Scroll`] if any.
axum-live-view/src/event_data.rs:82
Methodas_strings
(&self)
axum-live-view/src/event_data.rs:271
Functionattribute
()
axum-live-view/src/html/tests.rs:106
Functionattribute_with_dash
()
axum-live-view/src/html/tests.rs:122
Functionaxm_attribute
()
axum-live-view/src/html/tests.rs:422
Functionaxm_enum_update_attribute
()
axum-live-view/src/html/tests.rs:450
Functionbasic
()
axum-live-view/src/html/tests.rs:15
Methodbuild
(self)
axum-live-view/src/event_data.rs:242
Methodbuilder
Get a [`FormBuilder`] for `Form`. This allows creating `Form` events for example for use in tests.
axum-live-view/src/event_data.rs:167
Methodclient_x
Horizontal coordinate within the application's viewport at which the event occurred. See [MDN] for more details. [MDN]: https://developer.mozilla.or
axum-live-view/src/event_data.rs:355
Methodclient_y
Vertical coordinate within the application's viewport at which the event occurred. See [MDN] for more details. [MDN]: https://developer.mozilla.org/
axum-live-view/src/event_data.rs:364
Methodcode
(&self)
axum-live-view/src/event_data.rs:298
Functionconditional
()
axum-live-view/src/html/tests.rs:155
Functionconditional_else
()
axum-live-view/src/html/tests.rs:167
Functionconditional_else_if
()
axum-live-view/src/html/tests.rs:181
Functionconditional_with_single_expr
()
axum-live-view/src/html/tests.rs:197
Methodconnected
Check whether the request was a WebSocket upgrade request. This can be used to initialize the view differently depending on which part of the live vi
axum-live-view/src/life_cycle.rs:56
Methodconstructor
()
assets/src/live_view.ts:6
Methodconstructor
()
assets-precompiled/axum_live_view.min.js:1
Methodctrl
(&self)
axum-live-view/src/event_data.rs:306
Functiondeeply_nested
()
axum-live-view/src/html/tests.rs:66
Functiondeserialize_message_from_socket_mount
()
axum-live-view/src/life_cycle.rs:578
Functiondeserialize_msg
(d: D)
axum-live-view/src/life_cycle.rs:433
Functiondiffing_dynamic
()
axum-live-view/src/html/tests.rs:487
Functiondiffing_dynamic_changing_fixed
()
axum-live-view/src/html/tests.rs:538
Functiondiffing_dynamic_multiple_dynamics
()
axum-live-view/src/html/tests.rs:505
Functiondiffing_dynamic_or_fixed
()
axum-live-view/src/html/tests.rs:802
Functiondiffing_fixed
()
axum-live-view/src/html/tests.rs:474
Functiondiffing_loop_conditional
()
axum-live-view/src/html/tests.rs:743
Functiondiffing_loop_dynaming_changes
()
axum-live-view/src/html/tests.rs:575
Functiondiffing_loop_fixed_changes
()
axum-live-view/src/html/tests.rs:638
Functiondiffing_message
()
axum-live-view/src/html/tests.rs:782
Functiondiffing_removing_dynamic
()
axum-live-view/src/html/tests.rs:715
MethoddisableDebug
()
assets/src/live_view.ts:17
MethoddisableDebug
()
assets-precompiled/axum_live_view.min.js:1
Functiondoctype
()
axum-live-view/src/html/tests.rs:21
Methodembed
Embed a live view in a HTML template.
axum-live-view/src/life_cycle.rs:38
Functionempty_attribute
()
axum-live-view/src/html/tests.rs:139
Functionempty_slice
(s: &[T])
axum-live-view/src/html/mod.rs:38
Functionempty_tag
()
axum-live-view/src/html/tests.rs:147
MethodenableDebug
()
assets/src/live_view.ts:13
MethodenableDebug
()
assets-precompiled/axum_live_view.min.js:1
Methodexpecting
(&self, formatter: &mut fmt::Formatter)
axum-live-view/src/life_cycle.rs:446
Functionfixed_next_to_dynamic
()
axum-live-view/src/html/tests.rs:46
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
axum-live-view/src/event_data.rs:201
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
axum-live-view/src/life_cycle.rs:62
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
axum-live-view/src/test.rs:151
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
axum-live-view/src/live_view/mod.rs:125
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
axum-live-view/src/html/mod.rs:30
Functionfor_loop
()
axum-live-view/src/html/tests.rs:225
Functionfor_loop_with_conditional
()
axum-live-view/src/html/tests.rs:247
Methodforward
Forward all messages from a [`Stream`] to the view. This will cause [`LiveView::update`] to be called whenever the stream yields a new item. Note th
axum-live-view/src/live_view/mod.rs:298
Methodfrom
(data: EventMessageFromSocketData)
axum-live-view/src/event_data.rs:92
Methodfrom
(kind: JsCommandKind)
axum-live-view/src/js_command.rs:53
Methodfrom
(html: &'a Html<T>)
axum-live-view/src/html/diff.rs:29
Methodfrom_request_parts
(parts: &mut Parts, state: &S)
axum-live-view/src/extract.rs:41
Functionhistory_push_state
Change the location without reloading the page. This calls [`History.pushState`]. # Example ``` axum_live_view::js_command::history_push_state("/so
axum-live-view/src/js_command.rs:163
Functionhtml
(input: proc_macro::TokenStream)
axum-live-view-macros/src/lib.rs:58
Functionif_let
()
axum-live-view/src/html/tests.rs:210
Functionif_toggle
()
axum-live-view/src/html/tests.rs:865
Functionif_up_front
()
axum-live-view/src/html/tests.rs:312
Functionif_up_front_nested
()
axum-live-view/src/html/tests.rs:323
Functioninterpolate
()
axum-live-view/src/html/tests.rs:39
Functioninterpolate_class
()
axum-live-view/src/html/tests.rs:130
Methodkey
(&self)
axum-live-view/src/event_data.rs:294
Functionkeyword_attribute
()
axum-live-view/src/html/tests.rs:304
Functionmain
()
xtask/src/main.rs:24
Functionmain
()
examples/counter/src/main.rs:9
Functionmain
()
examples/chat/src/main.rs:24
Functionmain
()
examples/form/src/main.rs:9
Functionmain
()
examples/clock/src/main.rs:8
Functionmain
()
examples/key-events/src/main.rs:9
Functionmatch_
()
axum-live-view/src/html/tests.rs:275
Functionmatch_guard
()
axum-live-view/src/html/tests.rs:289
Functionmatch_with_blocks
()
axum-live-view/src/html/tests.rs:854
Methodmerge
(self, other: U)
axum-live-view/src/util/stream_ext.rs:9
Methodmeta
(&self)
axum-live-view/src/event_data.rs:314
Methodmount
(&mut self, _: Uri, _: &HeaderMap, handle: ViewHandle<Self::Message>)
examples/chat/src/main.rs:100
Methodmount
( &mut self, _uri: axum::http::Uri, _request_headers: &axum::http::HeaderMap,
examples/clock/src/main.rs:51
Methodmount
(&mut self, uri: Uri, request_headers: &HeaderMap, handle: ViewHandle<Self::Message>)
axum-live-view/src/live_view/combine.rs:89
Methodmount
(&mut self, uri: Uri, request_headers: &HeaderMap, handle: ViewHandle<Self::Message>)
axum-live-view/src/live_view/mod.rs:95
Methodmount_headers
Set the headers [`LiveView::mount`] will be called with.
axum-live-view/src/test.rs:114
Methodmount_uri
Set the URI [`LiveView::mount`] will be called with.
axum-live-view/src/test.rs:108
Methodmovement_x
The horizontal coordinate of the mouse pointer relative to the position of the last `mousemove` event. See [MDN] for more details. [MDN]: https://de
axum-live-view/src/event_data.rs:412
Methodmovement_y
The vertical coordinate of the mouse pointer relative to the position of the last `mousemove` event. See [MDN] for more details. [MDN]: https://deve
axum-live-view/src/event_data.rs:422
Functionmultiple_attributes
()
axum-live-view/src/html/tests.rs:114
Functionnavigate_to
Navigate to another URL. This sets `window.location`. Use [`history_push_state`] to change the location without reloading the page. # Example ```
axum-live-view/src/js_command.rs:72
Functionnested_tags
()
axum-live-view/src/html/tests.rs:56
Functionnested_with_more_html_calls
()
axum-live-view/src/html/tests.rs:84
← previousnext →101–200 of 252, ranked by callers