Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
b0e57139
Commit
b0e57139
authored
8 years ago
by
Carsten Rose
Browse files
Options
Downloads
Patches
Plain Diff
HTML.md, PROTOCOL.md: added description for 'Typeahead'
parent
9510c9fa
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/HTML.md
+28
-0
28 additions, 0 deletions
doc/HTML.md
doc/PROTOCOL.md
+30
-0
30 additions, 0 deletions
doc/PROTOCOL.md
with
58 additions
and
0 deletions
doc/HTML.md
+
28
−
0
View file @
b0e57139
...
@@ -37,3 +37,31 @@ call to `api/load.php` upon change.
...
@@ -37,3 +37,31 @@ call to `api/load.php` upon change.
### id="close-button"
### id="close-button"
### id="delete-button"
### id="delete-button"
### id="form-new-button"
### id="form-new-button"
## Typeahead
Typeahead capable text input elements will be defined by the following attributes:
### .class='qfq-typeahead'
### .data-typeahead-sip
The SIP will store:
Use with SQL:
`typeAheadSql`
Use with LDAP:
*
`typeAheadLdapServer`
*
`typeAheadLdapBaseDn`
*
`typeAheadLdapSearch`
*
`typeAheadLdapValuePrintf`
*
`typeAheadLdapKeyPrintf`
### .data-typeahead-limit
*
Defines the limit of entries shown on the client. Default on client is 5. The server will always send a value. The server default is 20.
### .data-typeahead-minlength
*
Defines the string minlegth, typed by the user, before the first lookup is started. Default is 2.
This diff is collapsed.
Click to expand it.
doc/PROTOCOL.md
+
30
−
0
View file @
b0e57139
...
@@ -207,6 +207,20 @@ The format of redirect information is outlined below
...
@@ -207,6 +207,20 @@ The format of redirect information is outlined below
: Used to provide an URL when
`"redirect"`
is set to
`"url"`
. It
: Used to provide an URL when
`"redirect"`
is set to
`"url"`
. It
should be disregarded unless
`"redirect"`
is set to
`"url"`
.
should be disregarded unless
`"redirect"`
is set to
`"url"`
.
### Typeahead dict Response
{
...
[
{
"key": "<key value>",
"value": <display value>
},
...
],
...
}
## API Endpoints
## API Endpoints
...
@@ -321,6 +335,22 @@ Server Response
...
@@ -321,6 +335,22 @@ Server Response
: The response contains a [Minimal Response].
: The response contains a [Minimal Response].
[Redirection Response] may be included.
[Redirection Response] may be included.
### Typeahead
The Client initiates Typeahead actions via a GET request. A JSON key/value dict will we be send back as response.
The Client GET request contains a 'sip' and the already typed value as 'query' paramter.
Request URL
: api/typeahead.php
Request Method
: GET
URL Parameters
:
`sip`
,
`query`
Server Response
: The response contains at least a [Minimal Response]. In addition, a [Typeahead dict],
## Glossary
## Glossary
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment