Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ChrisMayor/AngularSwotMatrixControl

Repository files navigation

SWOT Matrix Control (drag and drop) based on Angular 8 Elements

Description

Conversion of my original project https://github.com/ChrisMayor/D365SwotMatrix to the Angular Elements

Custom 2 x 2 Matrix control which can be used in any web application (react, jquery, vue, plain js).

This control is based on Angular 8, TypeScript and Angular Elements.

Highlights

  • Angular 8
  • Angular Elements

Getting Started

To build

  • Open cmd to project root
  • run:
ng build --prod
  • Output is in root/dist

Open in browser

  • Open cmd to project root
  • run:
ng serve -o

Screenshot

API

Input: Tile names : string

tile1Name: string = "Strengths";
tile2Name: string = "Weaknesses";
tile3Name: string = "Opportunities";
tile4Name: string = "Threats";

Input: Tiles (separator= ;;) : string

tile1
tile2
tile3
tile4

Input: tilexIsNull : boolean

tile1IsNull
tile2IsNull
tile3IsNull
tile4IsNull

How to run / API sample

start web application in browser

  • clone repository
npm install
ng serve -o

Sample: Use the Javascript API to transform the Swot Matrix to an Ansoff-Matrix

const component = document.querySelector('app-matrix');
component.tile1Name = "Market development"
component.tile2Name = "Diversivication"
component.tile3Name = "Market penetration"
component.tile4Name = "Product development"
component.tile1 = "Expand advertising;;Target more segments"
component.tile2 = "Enter new segments;; Expand distribution"
component.tile4 = "Strategy1;;Strategy2"

Disclaimer / Impressum

  • Published under the MIT license
  • Use at your own risk

Impressum / Imprint in German language to comply with German tele-media regulations.

About

Drag n drop SWOT Matrix Control (Angular Elements) for web applications

Topics

Resources

Readme

License

MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Stars

Watchers

Forks

Packages

Contributors