Global

Members

todoList :Array.<Todo>

할 일 목록

Type:
Source:

Methods

createTodo(params)

  • 할 일을 추가할 수 있다.
  • 내용없이 추가할 수 없다.
Parameters:
Name Type Description
params Object
Properties
Name Type Description
content string

추가할 내용

category string

카테고리

tags Array.<string> | undefined

태그들

Source:

deleteTodo(id)

  • ID를 기반으로 특정 할 일을 삭제할 수 있다.
  • 모든 할 일을 제거할 수 있다.
Parameters:
Name Type Description
id string | undefined

할 일 아이디 (undefined일 경우 모든 할 일 삭제)

Source:

deleteTodoTag(params)

  • 특정 할 일의 특정 태그를 삭제할 수 있다.
  • 특정 할 일의 모든 태그를 제거할 수 있다.
Parameters:
Name Type Description
params Object
Properties
Name Type Description
id string

할 일 아이디

tagIdx number | undefined

태그의 인덱스 번호로 삭제

Source:

readTodo(id)

  • ID를 기반으로 특정 할 일을 조회할 수 있다.
Parameters:
Name Type Description
id string

할 일 아이디 (undefined일 경우 모든 할 일을 조회)

Source:

readTodoList()

  • 모든 할 일을 조회할 수 있다.
Source:

updateTodo(todoData)

  • ID를 제외한 모든 속성을 수정할 수 있다.
  • 특정 할 일의 특정 태그를 수정할 수 있다.
Parameters:
Name Type Description
todoData Todo
Source:

Type Definitions

Todo

할 일

Type:
  • Object
Properties:
Name Type Description
id string

아이디

content string

내용

isCompleted boolean

완료 여부

category string

카테고리

tags Array.<string> | undefined

태그들

Source: