Skip to content

Commit 473bc40

Browse files
authored
Merge pull request #1173 from andrewnicols/missedBackports
[docs] Manually backport #1151
2 parents c90cb55 + e250200 commit 473bc40

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

versioned_docs/version-4.5/apis/plugintypes/ai/placement.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ $action = new \core_ai\aiactions\generate_image(
7272
// Send the action to the AI manager.
7373
$manager = \core\di::get(\core_ai\manager::class);
7474
$response = $manager->process_action($action);
75-
````
75+
```
7676

7777
- The process_action() method will then return a response object (instance of `responses\response_base`).
7878
- It is up to the Placement to check for success (or not) of the response and pass the result back to the

versioned_docs/version-4.5/guides/javascript/comboboxsearch/index.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -175,53 +175,53 @@ Manually open and close the dropdown rather than purely relying on Bootstrap.
175175

176176
Ensure that nodes that are susceptible to change are up-to-date when we need them.
177177

178-
#### registerClickHandlers()
178+
#### registerClickHandlers() {#registerClickHandlers}
179179

180180
Handle our base case of click handlers i.e. opening and closing the dropdown. This can be further extended in callers for any special handling.
181181

182-
#### registerKeyHandlers()
182+
#### registerKeyHandlers() {#registerKeyHandlers}
183183

184184
Handle our base case of keyboard handlers i.e. opening and closing the dropdown, accessibility handling. This can be further extended in callers for any special handling.
185185

186-
#### registerInputHandlers()
186+
#### registerInputHandlers() {#registerInputHandlers}
187187

188188
Register the text input handlers for the search input and debounce the input so that we don't need to fire a bunch of calls as the user is still typing.
189189
<!-- cspell:ignore filterrenderpipe -->
190190
#### filterrenderpipe()
191191

192192
Combine the filter and render methods into a single method to be called by the input handlers as a QoL shorthand call.
193193

194-
#### renderAndShow()
194+
#### renderAndShow() {#renderAndShow}
195195

196196
Given we need to update the display, ensure we have the latest dataset and render it.
197197

198-
#### keyUpDown()
198+
#### keyUpDown() {#keyUpDown}
199199

200200
Given the user is navigating the dropdown with the keyboard, handle the common up and down arrow key cases.
201201

202-
#### clickHandler()
202+
#### clickHandler() {#clickHandler}
203203

204-
Used within [registerClickHandlers](#registerClickHandlers()) to handle the common click cases like selecting results, closing the dropdown, etc.
204+
Used within [registerClickHandlers](#registerClickHandlers) to handle the common click cases like selecting results, closing the dropdown, etc.
205205

206-
#### keyHandler()
206+
#### keyHandler() {#keyHandler}
207207

208-
Used within [registerKeyHandlers](#registerKeyHandlers()) to handle the common keyboard cases like navigating nodes, closing the dropdown, etc.
208+
Used within [registerKeyHandlers](#registerKeyHandlers) to handle the common keyboard cases like navigating nodes, closing the dropdown, etc.
209209

210210
#### selectNode()
211211

212-
When used in conjunction with [keyUpDown](#keyUpDown()) and other similar functions, this function will select the node that the user has navigated to.
212+
When used in conjunction with [keyUpDown](#keyUpDown) and other similar functions, this function will select the node that the user has navigated to.
213213

214214
#### moveToFirstNode()
215215

216-
When used in conjunction with [keyUpDown](#keyUpDown()) and other similar functions, this function will move the user to the first node in the dropdown.
216+
When used in conjunction with [keyUpDown](#keyUpDown) and other similar functions, this function will move the user to the first node in the dropdown.
217217

218218
#### moveToLastNode()
219219

220-
When used in conjunction with [keyUpDown](#keyUpDown()) and other similar functions, this function will move the user to the last node in the dropdown.
220+
When used in conjunction with [keyUpDown](#keyUpDown) and other similar functions, this function will move the user to the last node in the dropdown.
221221

222222
#### moveToNode()
223223

224-
When used in conjunction with [keyUpDown](#keyUpDown()) and other similar functions, this function will move the user to the node that is passed in.
224+
When used in conjunction with [keyUpDown](#keyUpDown) and other similar functions, this function will move the user to the node that is passed in.
225225

226226
### Required functions to implement
227227

0 commit comments

Comments
 (0)