Skip to content

Commit 1cf6ba2

Browse files
committed
Converted readme to OS style
1 parent e8b31bf commit 1cf6ba2

File tree

1 file changed

+32
-47
lines changed

1 file changed

+32
-47
lines changed

README.md

Lines changed: 32 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -9,87 +9,72 @@
99
- Changing the text of the buttons
1010
- Redirecting the button to a specific location (e.g. an introductory page)
1111

12-
## Attributes
12+
### Attributes
1313

1414
All configuration options must be added and amended, where appropriate, for all JSON files.
1515

16-
### *config.json*
16+
*config.json*
17+
1718
The following attributes are set within *config.json*.
1819

19-
### **\_homeButton** (object):
20-
The Home Button object contains the following settings:
20+
**\_homeButton** (object): The Home Button object contains the following settings:
21+
22+
>**\_isEnabled** (boolean): Controls whether the Home Button extension is enabled.
2123
22-
#### **\_isEnabled** (boolean):
23-
Controls whether the Home Button extension is enabled
24+
*course.json*
2425

25-
### *course.json*
2626
The following attributes are set within *course.json*. These are used to set some default settings and the navigation order:
2727

28-
### **\_homeButton** (object):
29-
The Home Button object contains the following settings:
28+
**\_homeButton** (object): The Home Button object contains the following settings:
29+
30+
>**\_navOrder** (number): The order that the button appears in the navigation.
31+
32+
>**\_showLabel** (boolean): Controls whether the button should use a navigation label or just an icon.
3033
31-
#### **_navOrder** (number):
32-
The order that the button appears in the navigation
34+
>**alt** (string): The button's `aria-label` text. Used to override global setting.
3335
34-
#### **_showLabel** (boolean):
35-
Controls whether the button should use a navigation label or just an icon
36+
>**navLabel** (string): The button label text as it appears in the navigation.
3637
37-
#### **alt** (string):
38-
The button's `aria-label` text. Used to override global setting
38+
>**\_navTooltip** (object): The Navigation Tooltip object contains the following settings:
3939
40-
#### **navLabel** (string):
41-
The button label text as it appears in the navigation
40+
>>**\_isEnabled** (boolean): Controls whether the navigation tooltip is enabled.
4241
43-
#### **_navTooltip** (object):
44-
The Navigation Tooltip object contains the following settings:
42+
>>**text** (string): The text of the tooltip. Used to override global setting.
4543
46-
##### **\_isEnabled** (boolean):
47-
Controls whether the navigation tooltip is enabled
44+
*course.json* and *contentObjects.json*
4845

49-
##### **text** (string):
50-
The text of the tooltip. Used to override global setting
46+
The following attributes are set within *course.json* and / or *contentObjects.json*. These are used to *override* global settings and customize the button for a specific page or menu.
5147

52-
### *course.json / contentObjects.json*
53-
The following attributes are set within *course.json* and/or *contentObjects.json*. These are used to *override* global settings and customize the button for a specific page or menu.
48+
**\_homeButton** (object): The Home Button object contains the following settings:
5449

55-
### **\_homeButton** (object):
56-
The Home Button object contains the following settings:
50+
>**\_isEnabled** (boolean): Controls whether the Home Button extension is enabled.
5751
58-
#### **\_isEnabled** (boolean):
59-
Controls whether the Home Button extension is enabled
52+
>**\_hideHomeButton** (boolean): Controls whether the home button is hidden or not.
6053
61-
#### **\_hideHomeButton** (boolean):
62-
Controls whether the home button is hidden or not
54+
>**\_hideBackButton** (boolean): Controls whether the back button is hidden or not. Applies to *contentObjects.json* only.
6355
64-
#### **\_hideBackButton** (boolean):
65-
Controls whether the back button is hidden or not. Applies to *contentObjects.json* only.
56+
>**\_redirectToId** (string): The page ID that the home button should redirect the user to. Use when overriding standard behaviour such as redirecting to an introductory page from the menu.
6657
67-
#### **\_redirectToId** (string):
68-
The page ID that the home button should redirect the user to. Use when overriding standard behaviour such as redirecting to an introductory page from the menu.
58+
>**\_iconClasses** (string): CSS class name to override the default home button icon application. Default application for the home button is `icon-home` on all pages with `icon-controls-left` on the menu. If an override is applied to *course.json* the override will apply to the menu and all pages. If an override is applied to *contentObjects.json* the override will only apply specifically to that page.
6959
70-
#### **alt** (string):
71-
The button's `aria-label` text. Used to override global setting
60+
>**alt** (string): The button's `aria-label` text. Used to override global setting.
7261
73-
#### **navLabel** (string):
74-
The button label text as it appears in the navigation. Used to override global setting
62+
>**navLabel** (string): The button label text as it appears in the navigation. Used to override global setting.
7563
76-
#### **_navTooltip** (object):
77-
The Navigation Tooltip object contains the following settings:
64+
>**_navTooltip** (object): The Navigation Tooltip object contains the following settings:
7865
79-
##### **\_isEnabled** (boolean):
80-
Controls whether the navigation tooltip is enabled. Used to override global setting
66+
>>**\_isEnabled** (boolean): Controls whether the navigation tooltip is enabled. Used to override global setting.
8167
82-
##### **text** (string):
83-
The text of the tooltip. Used to override global setting
68+
>>**text** (string): The text of the tooltip. Used to override global setting.
8469
8570
## Limitations
8671

8772
No known limitations.
8873

8974
----------------------------
9075

91-
**Framework versions:** 5.30.3+<br>
92-
**Author / maintainer:** CGKineo<br>
76+
**Framework versions:** 5.30.3+<br>
77+
**Author / maintainer:** CGKineo<br>
9378
**Accessibility support:** WAI AA<br>
9479
**RTL support:** Yes<br>
9580
**Cross-platform coverage:** Chrome, Chrome for Android, Firefox (ESR + latest version), Edge, IE11, Safari 12+13 for macOS/iOS/iPadOS, Opera<br>

0 commit comments

Comments
 (0)