mccolumns
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mccolumns [2022/09/22 12:30] – admin | mccolumns [2024/11/21 11:10] (current) – [landscapeWidth] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== mcColumns - Make multiple choice questions responsive ====== | + | ====== mcColumns - Make multiple choice questions responsive |
| The mcColumns function automatically arranges multiple choice choices into columns based on the browser' | The mcColumns function automatically arranges multiple choice choices into columns based on the browser' | ||
| {{ :: | {{ :: | ||
| Line 5: | Line 5: | ||
| Functionality includes: | Functionality includes: | ||
| * Automatic placement and sizing of choices into columns | * Automatic placement and sizing of choices into columns | ||
| - | * Flexible control of number of columns | + | * Flexible control of number of columns |
| * Supports choice groups | * Supports choice groups | ||
| * Choice flow by column or row | * Choice flow by column or row | ||
| + | * Optionally span last n choices (e.g., None of these) across columns | ||
| * Works with any theme | * Works with any theme | ||
| * Works with text and/or image choices | * Works with text and/or image choices | ||
| - | This function is available for a reasonable fee. Contact [[https:// | + | This function is available for a reasonable fee. Contact |
| ===== Set-up Instructions ===== | ===== Set-up Instructions ===== | ||
| Line 41: | Line 42: | ||
| </ | </ | ||
| - | To override the default options, specify the desired [[mccolumns# | + | To override the default options, specify the desired |
| < | < | ||
| Qualtrics.SurveyEngine.addOnload(function() { | Qualtrics.SurveyEngine.addOnload(function() { | ||
| Line 48: | Line 49: | ||
| </ | </ | ||
| ===== Options ===== | ===== Options ===== | ||
| - | ==== buttons ==== | ||
| - | **buttons** specifies whether the Qualtrics theme being used has choices styled as buttons or not. All recent standard Qualtrics themes style choices as buttons. Some older "radio button and checkbox" | ||
| - | |||
| - | Default: true | ||
| ==== colGap ==== | ==== colGap ==== | ||
| - | **colGap** specifies the amount of space between columns. | + | **colGap** |
| - | Default: " | + | Default: |
| ==== cols ==== | ==== cols ==== | ||
| - | **cols** specifies the number of columns based on the window size. | + | **cols** |
| // | // | ||
| Line 69: | Line 66: | ||
| Default: {1:0,2:480} | Default: {1:0,2:480} | ||
| ==== flow ==== | ==== flow ==== | ||
| - | **flow** specifies if the choices should be ordered in columns (like a newspaper) or rows. By default, flow is by column. | + | **flow** |
| - | Default: " | + | Default: |
| + | ==== forceLandscape ==== | ||
| + | **forceLandscape** is a boolean used to force mobile users to rotate their device to landscape mode. When true, if the browser window size is less than or equal to **[[mccolumns# | ||
| + | |||
| + | Default: false | ||
| ==== labelMargin ==== | ==== labelMargin ==== | ||
| - | **labelMargin** specifies how content should be positioned in a choice " | + | **labelMargin** |
| + | |||
| + | Default: %%" | ||
| + | ==== landscapeWidth ==== | ||
| + | **landscapeWidth** is a number specifying the window width in pixels that must be surpassed to be in landscape mode when **[[mccolumns# | ||
| + | |||
| + | Default: 480 | ||
| + | ==== lastSpans ==== | ||
| + | **lastSpans** is a number that specifies the number of last choices that should span across all columns. | ||
| - | Default: | + | Default: |
| ==== rowGap ==== | ==== rowGap ==== | ||
| - | **rowGap** specifies the amount of space between rows. | + | **rowGap** |
| - | Default: "1px" | + | Default: |
| ==== textAlign ==== | ==== textAlign ==== | ||
| - | **textAlign** specifies the alignment of choice text within its parent container (i.e., a choice button). | + | **textAlign** |
| - | Default: " | + | Default: |
| ====== Qualtrics Wiki ====== | ====== Qualtrics Wiki ====== | ||
| [[start|Qualtrics Wiki]] | [[start|Qualtrics Wiki]] | ||
mccolumns.1663864227.txt.gz · Last modified: by admin
