Cardiff Council Content and design system

www.cardiff.gov.uk

App

viewers

Pdf page viewerMarkdown viewMap Image

popups

How to: Animate a popupHow to: Create a popupSuccess popup (page removal)Message popupSuccess popup (and or go to new route)

pages

Base pageHome pageProcess pageDetails page

layout

Section headingDividerNoteMarginsError labelHeadingHighlightAlertNotifyAnimationTextStandard header iconsLinks

input

SwitchTime pickerPickerCheckboxText editorMapSearch bar with GPSSearch addressSearch barText entry

buttons

EditCancel buttonVertical transparent buttonVertical inverted buttonTag buttonCarousel buttonCallout button (Main)Vertical buttonNext / Back buttonsClose buttonInfo buttonFull button

accessibility

AutomationProperties.IsInAccessibleTreeAutomationProperties.NameAutomationProperties.HelpTextUseful docs

Search bar

A searchbar used for filtering and searching. Examples can be found on the report it page or recycling A-Z

How to use this component


Code Resource


Deprecated: htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated in /home/site/wwwroot/wp-content/themes/huntsman-child/single-mobile.php on line 96
<inputs:SearchBar Margin="10,0,10,5"
                  Placeholder="{x:Static resx:AppResources.LblWhatToReport}"
                  SearchCommand="{Binding SearchCommand}"
                  Text="{Binding SearchQuery}"
                  TextChangedCommand="{Binding SearchCommand}" />
  • Placeholder
    • Sets the search bar placeholder
    • Default is String.Empty
  • Text
    • Text that the user has entered
    • Default is String.Empty
  • SearchCommand
    • Invoked if the user clicks the search button in the control/ or on the keyboard
  • TextChangedCommand
    • Invoked every time the user enters or deletes a character
  • SearchClicked
    • Invoked if the user clicks the search button in the control/ or on the keyboard
  • TextChanged
    • Invoked every time the user enters or deletes a character

How should this component look?