Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davidpdrsn/axum-live-view
/ functions
Functions
252 in github.com/davidpdrsn/axum-live-view
⨍
Functions
252
◇
Types & classes
115
↓ 1 callers
Function
set_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 callers
Function
t
()
assets-precompiled/axum_live_view.min.js:1
↓ 1 callers
Function
throttle
(f: Fn<In>, delayMs: number)
assets/src/live_view.ts:853
↓ 1 callers
Function
ts_precompile
(opt: TsPrecompile)
xtask/src/main.rs:103
↓ 1 callers
Method
update
(mut self, msg: Msg, data: Option<EventData>)
axum-live-view/src/test.rs:255
↓ 1 callers
Method
with_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
Function
add_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
Method
alt
(&self)
axum-live-view/src/event_data.rs:302
Method
as_bool
(&self)
axum-live-view/src/event_data.rs:255
Method
as_key
Get the inner [`Key`] if any.
axum-live-view/src/event_data.rs:64
Method
as_mouse
Get the inner [`Mouse`] if any.
axum-live-view/src/event_data.rs:73
Method
as_scroll
Get the inner [`Scroll`] if any.
axum-live-view/src/event_data.rs:82
Method
as_strings
(&self)
axum-live-view/src/event_data.rs:271
Function
attribute
()
axum-live-view/src/html/tests.rs:106
Function
attribute_with_dash
()
axum-live-view/src/html/tests.rs:122
Function
axm_attribute
()
axum-live-view/src/html/tests.rs:422
Function
axm_enum_update_attribute
()
axum-live-view/src/html/tests.rs:450
Function
basic
()
axum-live-view/src/html/tests.rs:15
Method
build
(self)
axum-live-view/src/event_data.rs:242
Method
builder
Get a [`FormBuilder`] for `Form`. This allows creating `Form` events for example for use in tests.
axum-live-view/src/event_data.rs:167
Method
client_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
Method
client_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
Method
code
(&self)
axum-live-view/src/event_data.rs:298
Function
conditional
()
axum-live-view/src/html/tests.rs:155
Function
conditional_else
()
axum-live-view/src/html/tests.rs:167
Function
conditional_else_if
()
axum-live-view/src/html/tests.rs:181
Function
conditional_with_single_expr
()
axum-live-view/src/html/tests.rs:197
Method
connected
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
Method
constructor
()
assets/src/live_view.ts:6
Method
constructor
()
assets-precompiled/axum_live_view.min.js:1
Method
ctrl
(&self)
axum-live-view/src/event_data.rs:306
Function
deeply_nested
()
axum-live-view/src/html/tests.rs:66
Function
deserialize_message_from_socket_mount
()
axum-live-view/src/life_cycle.rs:578
Function
deserialize_msg
(d: D)
axum-live-view/src/life_cycle.rs:433
Function
diffing_dynamic
()
axum-live-view/src/html/tests.rs:487
Function
diffing_dynamic_changing_fixed
()
axum-live-view/src/html/tests.rs:538
Function
diffing_dynamic_multiple_dynamics
()
axum-live-view/src/html/tests.rs:505
Function
diffing_dynamic_or_fixed
()
axum-live-view/src/html/tests.rs:802
Function
diffing_fixed
()
axum-live-view/src/html/tests.rs:474
Function
diffing_loop_conditional
()
axum-live-view/src/html/tests.rs:743
Function
diffing_loop_dynaming_changes
()
axum-live-view/src/html/tests.rs:575
Function
diffing_loop_fixed_changes
()
axum-live-view/src/html/tests.rs:638
Function
diffing_message
()
axum-live-view/src/html/tests.rs:782
Function
diffing_removing_dynamic
()
axum-live-view/src/html/tests.rs:715
Method
disableDebug
()
assets/src/live_view.ts:17
Method
disableDebug
()
assets-precompiled/axum_live_view.min.js:1
Function
doctype
()
axum-live-view/src/html/tests.rs:21
Method
embed
Embed a live view in a HTML template.
axum-live-view/src/life_cycle.rs:38
Function
empty_attribute
()
axum-live-view/src/html/tests.rs:139
Function
empty_slice
(s: &[T])
axum-live-view/src/html/mod.rs:38
Function
empty_tag
()
axum-live-view/src/html/tests.rs:147
Method
enableDebug
()
assets/src/live_view.ts:13
Method
enableDebug
()
assets-precompiled/axum_live_view.min.js:1
Method
expecting
(&self, formatter: &mut fmt::Formatter)
axum-live-view/src/life_cycle.rs:446
Function
fixed_next_to_dynamic
()
axum-live-view/src/html/tests.rs:46
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
axum-live-view/src/event_data.rs:201
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
axum-live-view/src/life_cycle.rs:62
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
axum-live-view/src/test.rs:151
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
axum-live-view/src/live_view/mod.rs:125
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
axum-live-view/src/html/mod.rs:30
Function
for_loop
()
axum-live-view/src/html/tests.rs:225
Function
for_loop_with_conditional
()
axum-live-view/src/html/tests.rs:247
Method
forward
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
Method
from
(data: EventMessageFromSocketData)
axum-live-view/src/event_data.rs:92
Method
from
(kind: JsCommandKind)
axum-live-view/src/js_command.rs:53
Method
from
(html: &'a Html<T>)
axum-live-view/src/html/diff.rs:29
Method
from_request_parts
(parts: &mut Parts, state: &S)
axum-live-view/src/extract.rs:41
Function
history_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
Function
html
(input: proc_macro::TokenStream)
axum-live-view-macros/src/lib.rs:58
Function
if_let
()
axum-live-view/src/html/tests.rs:210
Function
if_toggle
()
axum-live-view/src/html/tests.rs:865
Function
if_up_front
()
axum-live-view/src/html/tests.rs:312
Function
if_up_front_nested
()
axum-live-view/src/html/tests.rs:323
Function
interpolate
()
axum-live-view/src/html/tests.rs:39
Function
interpolate_class
()
axum-live-view/src/html/tests.rs:130
Method
key
(&self)
axum-live-view/src/event_data.rs:294
Function
keyword_attribute
()
axum-live-view/src/html/tests.rs:304
Function
main
()
xtask/src/main.rs:24
Function
main
()
examples/counter/src/main.rs:9
Function
main
()
examples/chat/src/main.rs:24
Function
main
()
examples/form/src/main.rs:9
Function
main
()
examples/clock/src/main.rs:8
Function
main
()
examples/key-events/src/main.rs:9
Function
match_
()
axum-live-view/src/html/tests.rs:275
Function
match_guard
()
axum-live-view/src/html/tests.rs:289
Function
match_with_blocks
()
axum-live-view/src/html/tests.rs:854
Method
merge
(self, other: U)
axum-live-view/src/util/stream_ext.rs:9
Method
meta
(&self)
axum-live-view/src/event_data.rs:314
Method
mount
(&mut self, _: Uri, _: &HeaderMap, handle: ViewHandle<Self::Message>)
examples/chat/src/main.rs:100
Method
mount
( &mut self, _uri: axum::http::Uri, _request_headers: &axum::http::HeaderMap,
examples/clock/src/main.rs:51
Method
mount
(&mut self, uri: Uri, request_headers: &HeaderMap, handle: ViewHandle<Self::Message>)
axum-live-view/src/live_view/combine.rs:89
Method
mount
(&mut self, uri: Uri, request_headers: &HeaderMap, handle: ViewHandle<Self::Message>)
axum-live-view/src/live_view/mod.rs:95
Method
mount_headers
Set the headers [`LiveView::mount`] will be called with.
axum-live-view/src/test.rs:114
Method
mount_uri
Set the URI [`LiveView::mount`] will be called with.
axum-live-view/src/test.rs:108
Method
movement_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
Method
movement_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
Function
multiple_attributes
()
axum-live-view/src/html/tests.rs:114
Function
navigate_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
Function
nested_tags
()
axum-live-view/src/html/tests.rs:56
Function
nested_with_more_html_calls
()
axum-live-view/src/html/tests.rs:84
← previous
next →
101–200 of 252, ranked by callers