columnManager

What this controller is doing should be pretty self-explanatory coming from it's name. It manages the different columns inside TweetDeck.

Table of Contents

Constants

Name Type Value Description
CUSTOMTIMELINES String customtimelines Definition of customtimelines column type
DATAMINR String dataminr Definition of dataminr column type
DISPLAY_ORDER Array Objects Display order of column types inside the column creation dialog
DISPLAY_ORDER_PROFILE Array Objects Display order of column types inside profile views
DISPLAY_ORDER_SINGLETON Array Objects Display order of columns provided by TweetDeck
FAVORITES String favorites Definition of favorites column type
FOLLOWERS String followers Definition of followers column type
HELP_TEXT Object Object Help texts for the different column types
HOME String home Definition of the home column type
INBOX String privateMe Definition of the inbox column type (messages for all accounts)
INTERACTIONS String interactions Definition of the interactions column type
LISTS String lists Definition of the lists column type
LIVEVIDEO String livevideo Definition of the livevideo column type
ME String me Definition of the me column type (mentions for all accounts)
MENTIONS String mentions Definition of the mentions column type
MENU_ATTRIBUTION Object Object Includes (all accounts) attribution texts for me and privateMe
MENU_TITLE Object Object Includes titles for all different column types
MESSAGES String messages Definition of the messages column type
MODAL_TITLE Object Object Includes titles for the column creation modal
NETWORKACTIVITY String networkactivity Definition of the networkactivity column type
NON_SELF_FEED_TYPE Object Object Includes column types that have no account bound to them
SCHEDULED String scheduled Definition of the scheduled column type
SEARCH String search Definition of the search column type
SELF_ACCOUNTS_ONLY Object Object Includes column types that only work with accounts bound to them
SELF_FEED_TYPE Object Object Defines feed types for columns with accounts
STREAMING_FULL String streaming_full Definition of the streaming_full stream status
STREAMING_NONE String streaming_none Definition of the streaming_none stream status
STREAMING_PARTIAL String streaming_partial Definition of the streaming_partial stream status
TIMELINE String timeline Definition of the timeline column type
TRENDS String trends Definition of the trends column type
TWEETS String tweets Definition of the tweets column type
TWITTER_GENERIC Object Object Definition of generic column types

Objects

Name Description
_aColumnIndex Contains all columns
_columnOrder Contains all columns in order
columnTypeToIconClass Contains mappings from column types to column icons

Methods

add

Parameters:

  • TD.vo.Column

Description:
Adds a new column to _aColumnIndex

addMany

Parameters:

  • TD.vo.Column[]

Description:
Adds new columns to _aColumnIndex

addColumnToUI

Parameters:

  • TD.vo.Column

Description:
Adds a column to the UI

checkColumns

Parameters:
None

Description:
Checks if there are columns, and if not, it adds the default columns

createColumn

Parameters:

  • sColumn (?)
  • Feed (?)

Description: Creates and returns a TD.vo.Column

deleteColumn

Parameters:

  • Column key

Description:
Deletes a column

findChirpByAccountKey

TODO

get

Parameters:

  • Column key

Description:
Returns the column with the specified column key

getAll

Parameters:
None

Description:
Returns all columns

getAllOrdered

Parameters:
None

Description:
Returns all columns in order

getByApiid

TODO

getColumnsByAccountKey

Parameters:

  • Account key

Description:
Returns all columns that match the specified account key

getStreamingState

Parameters:

  • Column key

Description:
Returns the streaming state of the specified column

isStreaming

Parameters:

  • Column key

Description:
Returns a boolean value if the specified column is streaming or not

makeColumn

TODO

makeColumnFor

Parameters:

  • settings Object

Description:
Creates a column with the specified options from the settings object

makeDefaultColumns

Parameters:

  • Account key

Description:
Creates a Home, Interactions, Messages and Activity column for the specified account key

makeOtherColumnAndFeeds

TODO

move

Parameters:

  • Column key
  • Action (?)
    • The move code compares this to either match left or right

Description: Moves the specified column

refreshColumnTitles

Parameters:
None

Description:
Refreshes the column titles

removeFromAppLayer

Parameters:

  • Column key

Description:
Cancels column subscriptions and feeds

updateTitlesAndIconClasses

Parameters:
None

Description:
Refreshes column titles, attributions and icons

Handlers

handleMakeOrRefreshScheduledColumn

Trigger:
uiNeedsScheduledColumnVisible

Description:
Refreshes or adds new scheduled columns

handleUiNeedsColumnOrder

Trigger:
uiNeedsColumnOrder

Description:
Sends the column order to the frontend

handleUiNeedsColumns

Trigger:
uiNeedsColumns

Description:
Sends columns to frontend

Senders

sendColumnOrder

Emitter:
dataColumnOrder

Payload:

{
  columnOrder: TD.controller.columnManager._columnOrder
}

sendColumns

Emitter:
dataColumns

Payload:

{
  columns: TD.controller.columnManager.getAllOrdered()
}

showColumn

Parameters:

  • Column key

Emitter:
uiColumnFocus

Payload:

{
  columnKey: (parameter)
}

results matching ""

    No results matching ""