Skip to content

Generic tabsPostProcessor and tabsLiContent #75

@robsdedude

Description

@robsdedude

How about adding the option to pass tabsPostProcessors just one function that gets executed for all tabs? I've seen this kind of code quite often

var tabsPostProcessors = tabs.map(function(tab) {
  return function($li, $a) {
    $a.click(function() {
      console.log("anchor click! tab.tooltip: ", tab.tooltip);
    });
  };
});

This is hard to read and hard to maintain as you have to change tabsPostProcessors whenever the number of tabs changes.

Similarly one can imagine the option to pass tabsLiContent just one generic string that is used for all tabs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions