Django CarbonDesign

Contents

  • Getting Started
  • Advanced Usage

Carbon Design Components

  • Accordion
  • Breadcrumb
  • Button
  • Checkbox
  • Code Snippet
  • Combo Box
  • Content Switcher
  • Copy Button
  • Data Table
  • Date Picker
  • Dropdown
  • File Uploader
  • Grid
  • Inline Loading
  • Link
  • List
  • List Box
  • Loading
  • Modal
  • Multi Select
  • Notification
  • Number Input
  • Overflow Menu
  • Pagination
  • Pagination Nav
  • Progress Indicator
  • Radio Button
  • Search
  • Select
  • Slider
  • Structured List
  • Tabs
  • Tag
  • Text Area
  • Text Input
  • Tile
  • Time Picker
  • Toggle
  • Toolbar
  • Tooltip
  • UI Shell
  • UI Shell Switcher
Django CarbonDesign
  • »
  • Link
  • View page source

Link

See: https://www.carbondesignsystem.com/components/link/usage/

Links are used as navigational elements. They may appear on their own, within a sentence or paragraph, or directly following the content.

Overview

Links are used as navigational elements and can be used on their own or inline with text. They provide a lightweight option for navigation but like other interactive elements, too many links will clutter a page and make it difficult for users to identify their next steps. This is especially true for inline links, which should be used sparingly.

class carbondesign.tags.link.Link(*args, **kwargs)

Link component.

WANT_CHILDREN = True

Template Tag needs closing end tag.

NODE_PROPS = ('visited', 'disabled', 'inline')

Extended Template Tag arguments.

DEFAULT_TAG = 'a'

Rendered HTML tag.

prepare(values, context)

Prepare values for rendering the templates.

render_default(values, context)

Output html of the component.

Previous Next

© Copyright 2022, Fahri Reza <i@dozy.moe>.

Built with Sphinx using a theme provided by Read the Docs.